From owner-cvs-src-old@FreeBSD.ORG Wed Aug 26 21:33:16 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 895F6106568C for ; Wed, 26 Aug 2009 21:33:16 +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 76CC08FC31 for ; Wed, 26 Aug 2009 21:33:16 +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 n7QLXGi9015626 for ; Wed, 26 Aug 2009 21:33:16 GMT (envelope-from qingli@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n7QLXGW6015625 for cvs-src-old@freebsd.org; Wed, 26 Aug 2009 21:33:16 GMT (envelope-from qingli@repoman.freebsd.org) Message-Id: <200908262133.n7QLXGW6015625@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to qingli@repoman.freebsd.org using -f From: Qing Li Date: Wed, 26 Aug 2009 21:32:50 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet6 ip6_input.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: Wed, 26 Aug 2009 21:33:16 -0000 qingli 2009-08-26 21:32:50 UTC FreeBSD src repository Modified files: sys/netinet6 ip6_input.c Log: SVN rev 196569 on 2009-08-26 21:32:50Z by qingli When multiple interfaces exist in the system, with each interface having an IPv6 address assigned to it, and if an incoming packet received on one interface has a packet destination address that belongs to another interface, the routing table is consulted to determine how to reach this packet destination. Since the packet destination is an interface address, the route table will return a host route with the loopback interface as rt_ifp. The input code must recognize this fact, instead of using the loopback interface, the input code performs a search to find the right interface that owns the given IPv6 address. Reviewed by: bz, gnn, kmacy MFC after: immediately Revision Changes Path 1.133 +25 -2 src/sys/netinet6/ip6_input.c