From owner-cvs-src-old@FreeBSD.ORG Sun Jul 18 05:09:32 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79909106564A for ; Sun, 18 Jul 2010 05:09:32 +0000 (UTC) (envelope-from lstewart@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 679718FC13 for ; Sun, 18 Jul 2010 05:09:32 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o6I59Wg0089090 for ; Sun, 18 Jul 2010 05:09:32 GMT (envelope-from lstewart@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o6I59Wmk089089 for cvs-src-old@freebsd.org; Sun, 18 Jul 2010 05:09:32 GMT (envelope-from lstewart@repoman.freebsd.org) Message-Id: <201007180509.o6I59Wmk089089@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to lstewart@repoman.freebsd.org using -f From: Lawrence Stewart Date: Sun, 18 Jul 2010 05:09:10 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet siftr.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jul 2010 05:09:32 -0000 lstewart 2010-07-18 05:09:10 UTC FreeBSD src repository Modified files: sys/netinet siftr.c Log: SVN rev 210203 on 2010-07-18 05:09:10Z by lstewart - Move common code from the hook functions that fills in a packet node struct to a separate inline function. This further reduces duplicate code that didn't have a good reason to stay as it was. - Reorder the malloc of a pkt_node struct in the hook functions such that it only occurs if we managed to find a usable tcpcb associated with the packet. - Make the inp_locally_locked variable's type consistent with the prototype of siftr_siftdata(). Sponsored by: FreeBSD Foundation Revision Changes Path 1.4 +87 -115 src/sys/netinet/siftr.c