From owner-freebsd-current@FreeBSD.ORG Tue Jan 5 00:51:52 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3F10106566C for ; Tue, 5 Jan 2010 00:51:52 +0000 (UTC) (envelope-from dhorn2000@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 58AE08FC1A for ; Tue, 5 Jan 2010 00:51:52 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 16so1827860fgg.13 for ; Mon, 04 Jan 2010 16:51:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=mpBIRvHV9fTI6fAappomRZz30/4SvP2Qxas2ssM0qLM=; b=a4glsbDoS4UgUaD2Qv1X768fvXGPKO0NsD5Ch8zhGV5kupQ1IDJXxkzpyUbgzNxGjo S+cJya2lWOrifOjeZHqWcQVdY4L8u7rOpdCh4QCRU4ik9QSh4j0K13uWtAzlZVyWhw05 rR3k4B1+0unPCINIlxojZIsvQPEWvWS0V3zcI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=EfP4Lj5qP5+vFW9vdCGLCWlSQHeqg0SmmZE1HlZ0eP0rCC+tjfuS7qlqFOpOd/XlLs mspkuNp4vKqmEz0e72nCMc1y6A1juMnD4pPsKt06WB59oVSckgxyWdIMOg7Ui7aoJBMg Wb5w+rTLQkSNWB0t7oxamcUcduUruMl4Vd2ik= MIME-Version: 1.0 Received: by 10.239.189.13 with SMTP id r13mr1527940hbh.92.1262652703605; Mon, 04 Jan 2010 16:51:43 -0800 (PST) In-Reply-To: <25ff90d61001022118y3c2a4ddcr30fd5283af065346@mail.gmail.com> References: <25ff90d61001022118y3c2a4ddcr30fd5283af065346@mail.gmail.com> Date: Mon, 4 Jan 2010 19:51:43 -0500 Message-ID: <25ff90d61001041651gf4509ads4d023320471ab74d@mail.gmail.com> From: David Horn To: Qing Li , freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: netinet6/in6.c r201282 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jan 2010 00:51:52 -0000 On Sun, Jan 3, 2010 at 12:18 AM, David Horn wrote: > Qing -- > > I have been having some issues with local ipv6 routes to machines that > are supposed to be on-link (attached to the same ethernet switch as my > test FreeBSD 9.0 box, and in the same /64) not being able to be > accessed properly after r201282. > > Simple ping6 to the host does not result in a echo response once the > ndp entries go stale. (from looking at ndp -a) > > I noticed that there seems to be a missing /64 on the routing table > entry, and doing a "route get -inet6 $hostname" for a host that is > supposed to be on-link and in the same /64 results in a routing entry > that points to the default router instead of the appropriate route for > the /64. > > I have attached both a working (route.good.txt) and broken > (route.bad.txt) routing table (from netstat -rWnfinet6) > > Let me know if you want a tcpdump, or other configuration data. > > I can get it to work again if I hack up in6.c (not a valid fix TTBOMK) li= ke so: > > Index: 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 > --- in6.c =A0 =A0 =A0 (revision 201413) > +++ in6.c =A0 =A0 =A0 (working copy) > @@ -1766,8 +1766,6 @@ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0|| (ifp->if_flags & IFF_LOOPBACK))) { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0error =3D ifa_add_loopback_route((struct i= faddr *)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) > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ia->ia_flags |=3D IFA_RTSEL= F; > =A0 =A0 =A0 =A0} > > =A0 =A0 =A0 =A0/* Add ownaddr as loopback rtentry, if necessary (ex. on p= 2p link). */ > > > uname -a > FreeBSD la 9.0-CURRENT FreeBSD 9.0-CURRENT #15 r201407:201413: Sat Jan > =A02 22:36:31 EST 2010 =A0 =A0 dhorn@la:/usr/obj/usr/src/sys/DHORN =A0amd= 64 > > > --Thanks! > > ---Dave Horn > Qing -- Thanks for the fix. r201543 seems to work well for me so far. --Dave Horn