From owner-svn-src-all@FreeBSD.ORG Thu Oct 6 00:11:55 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E13AB10656EB; Thu, 6 Oct 2011 00:11:55 +0000 (UTC) (envelope-from tomelite82@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7722E8FC18; Thu, 6 Oct 2011 00:11:50 +0000 (UTC) Received: by ggeq3 with SMTP id q3so1551161gge.13 for ; Wed, 05 Oct 2011 17:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=U/e0zPR7jR7kjzPH4uw1PfmgOhsW9C0fkahsQYBgKRA=; b=oRk1fL7LuD2S9jFXiuVL8VmYLoMKx2feXGh/0SDQstCr2qEaIttqs1zX0MHAUY+KBy LbaSKU9p3990T003Hq+Xskb30lR2axV+lEye2zok/ANPlqZeO+usj8A27gCTaxyA1O0+ FiWvBAnDqrmj6Ic+M02JRaqvAA6gMeQJCUcek= MIME-Version: 1.0 Received: by 10.150.131.2 with SMTP id e2mr105077ybd.10.1317858587977; Wed, 05 Oct 2011 16:49:47 -0700 (PDT) Sender: tomelite82@gmail.com Received: by 10.151.78.21 with HTTP; Wed, 5 Oct 2011 16:49:47 -0700 (PDT) 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> Date: Wed, 5 Oct 2011 16:49:47 -0700 X-Google-Sender-Auth: wpySmkYnx2FChpl6fmkYX4LLBc4 Message-ID: From: Qing Li To: "Bjoern A. Zeeb" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2011 00:11:56 -0000 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 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. > >