Skip site navigation (1)Skip section navigation (2)
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  5 16:27:11 2011
>> New Revision: 226040
>> URL: http://svn.freebsd.org/changeset/base/226040
>>
>> 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?
>
>>
>>  Reviewed by: hrs
>>  MFC after:   3 days
>>
>> Modified:
>>  head/sys/netinet6/in6.c
>>
>> Modified: head/sys/netinet6/in6.c
>> ==============================================================================
>> --- 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 = ifa_add_loopback_route((struct ifaddr *)ia,
>>                                      (struct sockaddr *)&ia->ia_addr);
>>               if (error == 0)
>
> --
> Bjoern A. Zeeb                                 You have to have visions!
>         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>