From owner-freebsd-net@FreeBSD.ORG Thu Oct 20 16:07:18 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 8B9B1106564A for ; Thu, 20 Oct 2011 16:07:18 +0000 (UTC) (envelope-from fernando.gont.netbook.win@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 476448FC0C for ; Thu, 20 Oct 2011 16:07:17 +0000 (UTC) Received: by yxn16 with SMTP id 16so3774559yxn.13 for ; Thu, 20 Oct 2011 09:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=0c8KoNISwYLsmoEbEkCUz0TbkLxFPmw/jOYvE/hyyqs=; b=UxgoS+sS8MoZkoAKGQCFBBg5X9OTT/+gyPmSe8qIqxt8LjJ3Xm1VeoENDd+l0BNIgE yAS/rO1bXbLSd/d7emvy1tA92WGYJoTMrAAQzkMl3DpApvaoRa2S1GJQOpLfbnRsD/qa ikBdgrPzrZJCr0Y+8YzBZnbX6OmZ8f3rHsBh0= Received: by 10.236.72.167 with SMTP id t27mr16455246yhd.127.1319126837648; Thu, 20 Oct 2011 09:07:17 -0700 (PDT) Received: from [192.168.123.103] ([190.48.225.169]) by mx.google.com with ESMTPS id m37sm27031782anq.11.2011.10.20.09.07.14 (version=SSLv3 cipher=OTHER); Thu, 20 Oct 2011 09:07:16 -0700 (PDT) Sender: Fernando Gont Message-ID: <4EA04712.3060705@gont.com.ar> Date: Thu, 20 Oct 2011 13:06:42 -0300 From: Fernando Gont User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 MIME-Version: 1.0 To: "Bjoern A. Zeeb" References: <4E9FAFCD.3080908@gont.com.ar> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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:07:18 -0000 Hi, Bjoern, Thanks so much for your prompt response! PLease find my comments inline... On 10/20/2011 09:19 AM, Bjoern A. Zeeb wrote: >> While doing some testing, it seems that FreeBSD ignores ICMPv6 Redirects >> when both the Redirect Destination and the Redirect Target are the same >> (i.e., the destination is supposed to be on-link). >> >> OTOH, Redirects are processed as expected when the Redirect Target is >> different from the Redirect Destination. > > What does it log if you turn on the following sysctl > net.inet6.icmp6.nd6_debug=1 > and reproduce? Nothing. However, the problem seems to be this: While an entry is added in the Neighbor Cache, no host-route is added to the routing table. Hence the corresponding entry in the Neighbor Cache is never used. >> Should I report this as a bug, or is this (non-rfc-compliant) behavior >> intentional? (If so, what's the rationale?) > > It's kern/152791, isn't it? Yep, it seems it is. -- The fix would be that when an ICMPv6 Redirect is received with RD Target == RD Destination, not only is an entry created in the Neighbor Cache, but a host-route is also created in the routing table. Thanks! Best regards, -- Fernando Gont e-mail: fernando@gont.com.ar || fgont@acm.org PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1