From owner-freebsd-net@FreeBSD.ORG Tue Feb 6 01:14:01 2007 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AF48016A406 for ; Tue, 6 Feb 2007 01:14:01 +0000 (UTC) (envelope-from freebsd.org@ab.ote.we.lv) Received: from mx1.nttmcl.com (mx1.nttmcl.com [216.69.64.132]) by mx1.freebsd.org (Postfix) with ESMTP id 9721613C4B5 for ; Tue, 6 Feb 2007 01:14:01 +0000 (UTC) (envelope-from freebsd.org@ab.ote.we.lv) Received: from [216.69.70.37] (ramen.nttmcl.com [216.69.70.37]) by mx1.nttmcl.com (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id l160unci009171 for ; Mon, 5 Feb 2007 16:56:54 -0800 Message-ID: <45C7D251.8060004@ab.ote.we.lv> Date: Mon, 05 Feb 2007 16:56:49 -0800 From: "Eugene M. Kim" User-Agent: Thunderbird 1.5.0.8 (X11/20061130) MIME-Version: 1.0 To: net@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.3 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on mx1.nttmcl.com Cc: Subject: rtadvd(8) and deprecated prefixes 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: Tue, 06 Feb 2007 01:14:02 -0000 Greetings, Unless disabled with -s flag, rtadvd(8) automatically picks up on-link prefixes from the routing table and includes them in RA messages. In doing so, rtadvd does not seem to distinguish preferred prefixes (preferred lifetime > 0) from distinguished ones (pltime = 0), but simply advertises both kinds using the default pltime set in rtadvd.conf(5) for fresh, preferred prefixes. As a result, deprecated prefixes end up being advertised as valid (i.e. pltime > 0), demonstrated in the following two ifconfig(8) outputs (the first on the router, the second on a host that receives RA from the router): home 16:37:24 ~ $ 5 /sbin/ifconfig fxp0 inet6 fxp0: flags=8843 mtu 1500 options=8 inet6 fe80::2a0:c9ff:feaa:106%fxp0 prefixlen 64 scopeid 0x1 inet6 2001:470:1f00:3605:2a0:c9ff:feaa:106 prefixlen 64 inet6 2001:470:1f00:3605:: prefixlen 64 anycast inet6 2001:470:1f01:3222:: prefixlen 64 anycast deprecated seerajeane 16:39:13 ~ $ 3 /sbin/ifconfig em0 inet6 em0: flags=8843 mtu 1500 options=19b inet6 fe80::2e0:81ff:fe51:1e73%em0 prefixlen 64 scopeid 0x1 inet6 2001:470:1f00:3605:2e0:81ff:fe51:1e73 prefixlen 64 autoconf inet6 2001:470:1f01:3222:2e0:81ff:fe51:1e73 prefixlen 64 autoconf Note that the two automatically configured addresses on em0 are still preferred, while the prefix 2001:470:1f01:3222::/64 is deprecated on the router. I believe rtadvd(8) should advertise deprecated on-link prefixes with pltime of 0, but I still wanted to know what other people think about this before working on actual code. So, here is the question: Is this really something to be fixed? Regards, Eugene