From owner-freebsd-net@FreeBSD.ORG Thu Oct 20 16:15:09 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F190106564A for ; Thu, 20 Oct 2011 16:15:03 +0000 (UTC) (envelope-from qing.li@bluecoat.com) Received: from whisker.bluecoat.com (whisker.bluecoat.com [216.52.23.28]) by mx1.freebsd.org (Postfix) with ESMTP id C4B1B8FC13 for ; Thu, 20 Oct 2011 16:15:01 +0000 (UTC) Received: from PWSVL-EXCHTS-01.internal.cacheflow.com ([10.2.2.122]) by whisker.bluecoat.com (8.14.2/8.14.2) with ESMTP id p9KGEvmv016912 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 20 Oct 2011 09:14:57 -0700 (PDT) Received: from PWSVL-EXCMBX-01.internal.cacheflow.com ([fe80::15bc:12e2:4676:340f]) by PWSVL-EXCHTS-01.internal.cacheflow.com ([fe80::5c50:e2ba:8115:4223%20]) with mapi id 14.01.0289.001; Thu, 20 Oct 2011 09:14:51 -0700 From: "Li, Qing" To: Fernando Gont , "Bjoern A. Zeeb" Thread-Topic: IPv6 Redirects & local destinations Thread-Index: AQHMjyKeMD++W67mAkeAu5yzVI2TXpWF25YA//+LVFg= Date: Thu, 20 Oct 2011 16:14:51 +0000 Message-ID: References: <4E9FAFCD.3080908@gont.com.ar> , <4EA04712.3060705@gont.com.ar> In-Reply-To: <4EA04712.3060705@gont.com.ar> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [216.52.23.68] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: FreeBSD Net Subject: RE: IPv6 Redirects & local destinations X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2011 16:15:09 -0000 This failure showed up in the IPv6 Ready Logo test suites and I am fixing i= t.=0A= =0A= I already made a checkin recently on this front, and more is coming.=0A= =0A= http://svnweb.freebsd.org/base?view=3Drevision&revision=3D226451=0A= =0A= I will be posting the test results soon so we know where we are.=0A= =0A= =0A= --Qing=0A= =0A= =0A= ________________________________________=0A= From: owner-freebsd-net@freebsd.org [owner-freebsd-net@freebsd.org] on beha= lf of Fernando Gont [fernando@gont.com.ar]=0A= Sent: Thursday, October 20, 2011 9:06 AM=0A= To: Bjoern A. Zeeb=0A= Cc: FreeBSD Net=0A= Subject: Re: IPv6 Redirects & local destinations=0A= =0A= Hi, Bjoern,=0A= =0A= Thanks so much for your prompt response! PLease find my comments inline...= =0A= =0A= On 10/20/2011 09:19 AM, Bjoern A. Zeeb wrote:=0A= >> While doing some testing, it seems that FreeBSD ignores ICMPv6 Redirects= =0A= >> when both the Redirect Destination and the Redirect Target are the same= =0A= >> (i.e., the destination is supposed to be on-link).=0A= >>=0A= >> OTOH, Redirects are processed as expected when the Redirect Target is=0A= >> different from the Redirect Destination.=0A= >=0A= > What does it log if you turn on the following sysctl=0A= > net.inet6.icmp6.nd6_debug=3D1=0A= > and reproduce?=0A= =0A= Nothing. However, the problem seems to be this: While an entry is added=0A= in the Neighbor Cache, no host-route is added to the routing table.=0A= Hence the corresponding entry in the Neighbor Cache is never used.=0A= =0A= =0A= =0A= >> Should I report this as a bug, or is this (non-rfc-compliant) behavior= =0A= >> intentional? (If so, what's the rationale?)=0A= >=0A= > It's kern/152791, isn't it?=0A= =0A= Yep, it seems it is. -- The fix would be that when an ICMPv6 Redirect is=0A= received with RD Target =3D=3D RD Destination, not only is an entry create= d=0A= in the Neighbor Cache, but a host-route is also created in the routing=0A= table.=0A= =0A= Thanks!=0A= =0A= Best regards,=0A= --=0A= Fernando Gont=0A= e-mail: fernando@gont.com.ar || fgont@acm.org=0A= PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1=0A= =0A= =0A= =0A= _______________________________________________=0A= freebsd-net@freebsd.org mailing list=0A= http://lists.freebsd.org/mailman/listinfo/freebsd-net=0A= To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"=0A=