From owner-cvs-src-old@FreeBSD.ORG Fri Mar 12 10:25:15 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 2B302106566C for ; Fri, 12 Mar 2010 10:25:15 +0000 (UTC) (envelope-from qingli@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 194C98FC08 for ; Fri, 12 Mar 2010 10:25:15 +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 o2CAPEoY030010 for ; Fri, 12 Mar 2010 10:25:14 GMT (envelope-from qingli@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o2CAPElv030009 for cvs-src-old@freebsd.org; Fri, 12 Mar 2010 10:25:14 GMT (envelope-from qingli@repoman.freebsd.org) Message-Id: <201003121025.o2CAPElv030009@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to qingli@repoman.freebsd.org using -f From: Qing Li Date: Fri, 12 Mar 2010 10:24:58 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/net flowtable.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: Fri, 12 Mar 2010 10:25:15 -0000 qingli 2010-03-12 10:24:58 UTC FreeBSD src repository Modified files: sys/net flowtable.c Log: SVN rev 205077 on 2010-03-12 10:24:58Z by qingli The flow-table module retrieves the destination and source address as well as the transport protocol port information from the outbound packets. The routing code is generic and compares every byte in the given sockaddr object. Therefore the temporary sockaddr objects must be cleared due to padding bytes. In addition, the port information must be stripped or the route search will either fail or return the incorrect route entry. Unit testing is done using OpenVPN over the if_tun interface. MFC after: 7 days Revision Changes Path 1.28 +13 -0 src/sys/net/flowtable.c