Date: Wed, 5 Oct 2011 16:49:47 -0700 From: Qing Li <qingli@freebsd.org> To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r226040 - head/sys/netinet6 Message-ID: <CAGnGRdK=k93im7HWhRyJ-rg8_N_udrKhPdKVUNi5nej=nJmSnw@mail.gmail.com> In-Reply-To: <00D2231B-DB0D-420F-BE61-F6B982473159@lists.zabbadoz.net> References: <201110051627.p95GRBc1019797@svn.freebsd.org> <00D2231B-DB0D-420F-BE61-F6B982473159@lists.zabbadoz.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Correct, but local addresses assigned to interfaces that support address resolution are still reachable. For those addresses mapped to pseduo interfaces, those are not reachable anyways. See ML thread http://unix.derkeiler.com/Mailing-Lists/FreeBSD/net/2009-09/msg00241.html --Qing On Wed, Oct 5, 2011 at 4:21 PM, Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net> wrote: > > On 5. Oct 2011, at 16:27 , Qing Li wrote: > >> Author: qingli >> Date: Wed Oct =A05 16:27:11 2011 >> New Revision: 226040 >> URL: http://svn.freebsd.org/changeset/base/226040 >> >> Log: >> =A0The IFA_RTSELF instead of the IFA_ROUTE flag should be checked to >> =A0determine if a loopback route should be installed for an interface >> =A0IPv6 address. Another condition is the address must not belong to a >> =A0looopback interface. > > If I set useloopback to 0 my loopback will no longer have a route to itse= lf anymore now? > >> >> =A0Reviewed by: hrs >> =A0MFC after: =A0 3 days >> >> Modified: >> =A0head/sys/netinet6/in6.c >> >> 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 =A0 Wed Oct =A05 16:03:47 2011 =A0 =A0 =A0 = =A0(r226039) >> +++ head/sys/netinet6/in6.c =A0 Wed Oct =A05 16:27:11 2011 =A0 =A0 =A0 = =A0(r226040) >> @@ -1810,9 +1810,9 @@ in6_ifinit(struct ifnet *ifp, struct in6 >> =A0 =A0 =A0 /* >> =A0 =A0 =A0 =A0* add a loopback route to self >> =A0 =A0 =A0 =A0*/ >> - =A0 =A0 if (!(ia->ia_flags & IFA_ROUTE) >> + =A0 =A0 if (!(ia->ia_flags & IFA_RTSELF) >> =A0 =A0 =A0 =A0 =A0 && (V_nd6_useloopback >> - =A0 =A0 =A0 =A0 =A0 =A0 || (ifp->if_flags & IFF_LOOPBACK))) { >> + =A0 =A0 =A0 =A0 =A0 =A0 && !(ifp->if_flags & IFF_LOOPBACK))) { >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 error =3D ifa_add_loopback_route((struct ifa= ddr *)ia, >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0(struct sockaddr *)&ia->ia_addr); >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (error =3D=3D 0) > > -- > Bjoern A. Zeeb =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 You have to have visions! > =A0 =A0 =A0 =A0 Stop bit received. Insert coin for new address family. > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGnGRdK=k93im7HWhRyJ-rg8_N_udrKhPdKVUNi5nej=nJmSnw>