From hrs@alph.d.allbsd.org  Sun Jun 14 23:07:47 2009
Return-Path: <hrs@alph.d.allbsd.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A84681065670
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 14 Jun 2009 23:07:47 +0000 (UTC)
	(envelope-from hrs@alph.d.allbsd.org)
Received: from alph.d.allbsd.org (p3185-ipbf514funabasi.chiba.ocn.ne.jp [123.225.96.185])
	by mx1.freebsd.org (Postfix) with ESMTP id 5DC798FC12
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 14 Jun 2009 23:07:46 +0000 (UTC)
	(envelope-from hrs@alph.d.allbsd.org)
Received: from alph.d.allbsd.org (localhost [127.0.0.1])
	by alph.d.allbsd.org (8.14.3/8.14.2) with ESMTP id n5EN7j1r018000
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 Jun 2009 08:07:45 +0900 (JST)
	(envelope-from hrs@alph.d.allbsd.org)
Received: (from hrs@localhost)
	by alph.d.allbsd.org (8.14.3/8.14.2/Submit) id n5EN7jKX017999;
	Mon, 15 Jun 2009 08:07:45 +0900 (JST)
	(envelope-from hrs)
Message-Id: <200906142307.n5EN7jKX017999@alph.d.allbsd.org>
Date: Mon, 15 Jun 2009 08:07:45 +0900 (JST)
From: Hiroki Sato <hrs@freebsd.org>
Reply-To: Hiroki Sato <hrs@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [ip6] net.inet6.ip6.accept_rtadv=1 removes a cloning route
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         135585
>Category:       kern
>Synopsis:       [ip6] net.inet6.ip6.accept_rtadv=1 removes a cloning route
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    hrs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 14 23:10:00 UTC 2009
>Closed-Date:    Sat Jun 11 06:00:18 UTC 2011
>Last-Modified:  Sat Jun 11 06:00:18 UTC 2011
>Originator:     Hiroki Sato
>Release:        FreeBSD 7.2-STABLE i386
>Organization:
Tokyo University of Science
>Environment:
System: FreeBSD phaleano.allbsd.org 7.2-STABLE FreeBSD 7.2-STABLE #20: Sun Jun 14 02:30:28 JST 2009 hrs@phaleano.allbsd.org:/usr/obj/usr/src/sys/PHALEANO i386

>Description:

	Behavior of net.int6.ip6.accept_rtadv=1 is odd on 7.1R and
	later.	The environment and symptom are the following:

	1. The box has two NICs.  One has an address 2001:0db8:1::1/64
	   (NIC A), and another has 2001:0db8:2::1/64 (NIC B).	These
	   addresses are assigned manually ($ipv6_ifconfig in
	   rc.conf).  Each NIC has a link-local address since
	   $ipv6_enable="YES" in rc.conf.

	2. RA is periodically sent to the network 2001:0db8:1::1/64
	   (NIC A) by a router on the subnet.  The RA includes a
	   source link-layer address option only.

	When setting net.inet6.ip6.accept_rtadv=1 in this
	configuration, I expected the box assigns an autoconf IPv6
	address (prefix 2001:0db8:1::/64 + EUI64) to NIC A and an
	default route based on source link-layer address in the RA
	packet.	 Actually, these two were done as expected.  However,
	after the autoconf address and default route are assigned,
	routes for NIC B disappeared from the routing table.  More
	specifically, a cloning route "2001:0db8:2::1/64 -> link#2"
	was removed for some reason.

>How-To-Repeat:

	Enable net.inet6.ip6.accept_rtadv=1 on a box with two NICs.
	7.0R works fine, but 7.1R and 7.2R remove cloning route of a
	NIC which did not receive RA unconditionally.

>Fix:

	No idea.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->bz 
Responsible-Changed-By: hrs 
Responsible-Changed-When: Sun Jun 14 23:19:06 UTC 2009 
Responsible-Changed-Why:  
Assign to bz@.  This is an issue reported on -stable@ in January 2009. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135585 
Responsible-Changed-From-To: bz->hrs 
Responsible-Changed-By: bz 
Responsible-Changed-When: Tue Nov 17 21:11:23 UTC 2009 
Responsible-Changed-Why:  
I think you can far better handle that than I can at the moment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135585 
State-Changed-From-To: open->closed 
State-Changed-By: hrs 
State-Changed-When: Sat Jun 11 05:59:48 UTC 2011 
State-Changed-Why:  
Fixed already. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135585 
>Unformatted:
