From owner-svn-src-head@FreeBSD.ORG Wed Oct 5 23:21:42 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DDCB106566B; Wed, 5 Oct 2011 23:21:42 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) by mx1.freebsd.org (Postfix) with ESMTP id 43DF78FC16; Wed, 5 Oct 2011 23:21:42 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 5521925D3810; Wed, 5 Oct 2011 23:21:41 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 7F41ABD3C58; Wed, 5 Oct 2011 23:21:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id A5BI+tagqvTk; Wed, 5 Oct 2011 23:21:39 +0000 (UTC) Received: from [IPv6:::1] (shell.eq4-01.sbone.de [IPv6:fde9:577b:c1a9:3161::401:22]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 77D04BD3C2C; Wed, 5 Oct 2011 23:21:38 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Bjoern A. Zeeb" In-Reply-To: <201110051627.p95GRBc1019797@svn.freebsd.org> Date: Wed, 5 Oct 2011 23:21:36 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <00D2231B-DB0D-420F-BE61-F6B982473159@lists.zabbadoz.net> References: <201110051627.p95GRBc1019797@svn.freebsd.org> To: Qing Li X-Mailer: Apple Mail (2.1084) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r226040 - head/sys/netinet6 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2011 23:21:42 -0000 On 5. Oct 2011, at 16:27 , Qing Li wrote: > Author: qingli > Date: Wed Oct 5 16:27:11 2011 > New Revision: 226040 > URL: http://svn.freebsd.org/changeset/base/226040 >=20 > Log: > The IFA_RTSELF instead of the IFA_ROUTE flag should be checked to > determine if a loopback route should be installed for an interface > IPv6 address. Another condition is the address must not belong to a > looopback interface. If I set useloopback to 0 my loopback will no longer have a route to = itself anymore now? >=20 > Reviewed by: hrs > MFC after: 3 days >=20 > Modified: > head/sys/netinet6/in6.c >=20 > Modified: head/sys/netinet6/in6.c > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/sys/netinet6/in6.c Wed Oct 5 16:03:47 2011 = (r226039) > +++ head/sys/netinet6/in6.c Wed Oct 5 16:27:11 2011 = (r226040) > @@ -1810,9 +1810,9 @@ in6_ifinit(struct ifnet *ifp, struct in6 > /* > * add a loopback route to self > */ > - if (!(ia->ia_flags & IFA_ROUTE) > + if (!(ia->ia_flags & IFA_RTSELF) > && (V_nd6_useloopback > - || (ifp->if_flags & IFF_LOOPBACK))) { > + && !(ifp->if_flags & IFF_LOOPBACK))) { > error =3D ifa_add_loopback_route((struct ifaddr *)ia, > (struct sockaddr *)&ia->ia_addr); > if (error =3D=3D 0) --=20 Bjoern A. Zeeb You have to have visions! Stop bit received. Insert coin for new address family.