From owner-cvs-src-old@FreeBSD.ORG Sun Jan 4 23:49:17 2009 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 AF730106564A for ; Sun, 4 Jan 2009 23:49:17 +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 9DBBB8FC08 for ; Sun, 4 Jan 2009 23:49:17 +0000 (UTC) (envelope-from qingli@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n04NnH9Q084225 for ; Sun, 4 Jan 2009 23:49:17 GMT (envelope-from qingli@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n04NnH19084224 for cvs-src-old@freebsd.org; Sun, 4 Jan 2009 23:49:17 GMT (envelope-from qingli@repoman.freebsd.org) Message-Id: <200901042349.n04NnH19084224@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to qingli@repoman.freebsd.org using -f From: Qing Li Date: Sat, 3 Jan 2009 00:27:28 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet in.c src/sys/netinet6 in6.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, 04 Jan 2009 23:49:17 -0000 qingli 2009-01-03 00:27:28 UTC FreeBSD src repository Modified files: sys/netinet in.c sys/netinet6 in6.c Log: SVN rev 186708 on 2009-01-03 00:27:28Z by qingli Some modules such as SCTP supplies a valid route entry as an input argument to ip_output(). The destionation is represented in a sockaddr{} object that may contain other pieces of information, e.g., port number. This same destination sockaddr{} object may be passed into L2 code, which could be used to create a L2 entry. Since there exists a L2 table per address family, the L2 lookup function can make address family specific comparison instead of the generic bcmp() operation over the entire sockaddr{} structure. Note in the IPv6 case the sin6_scope_id is not compared because the address is currently stored in the embedded form inside the kernel. The in6_lltable_lookup() has to account for the scope-id if this storage format were to change in the future. Revision Changes Path 1.115 +2 -1 src/sys/netinet/in.c 1.94 +15 -36 src/sys/netinet6/in6.c