From goto@light.snowy.to  Tue Dec  7 15:06:38 2004
Return-Path: <goto@light.snowy.to>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B485C16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Dec 2004 15:06:38 +0000 (GMT)
Received: from light.snowy.to (ns.snowy.to [219.166.73.146])
	by mx1.FreeBSD.org (Postfix) with SMTP id 4E3F343D5C
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Dec 2004 15:06:36 +0000 (GMT)
	(envelope-from goto@light.snowy.to)
Received: (qmail 1764 invoked by uid 1001); 7 Dec 2004 15:06:31 -0000
Message-Id: <20041207150631.1763.qmail@light.snowy.to>
Date: 7 Dec 2004 15:06:31 -0000
From: Yoshikazu GOTO <goto@snowy.to>
Reply-To: Yoshikazu GOTO <goto@snowy.to>
To: FreeBSD-gnats-submit@freebsd.org
Cc: goto@snowy.to
Subject: [patch] Fixed automatic configuration of multiple I/F in IPv6 environment
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         74817
>Category:       conf
>Synopsis:       [patch] network.subr: fixed automatic configuration of multiple I/F in IPv6 environment
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-rc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 07 15:10:29 GMT 2004
>Closed-Date:    Fri Jan 25 14:10:15 UTC 2008
>Last-Modified:  Fri Jan 25 14:10:15 UTC 2008
>Originator:     Yoshikazu GOTO <goto@snowy.to>
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
Snowy Project
>Environment:
System: FreeBSD light.snowy.to 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Mon Dec 6 21:52:23 JST 2004 root@light.snowy.to:/usr/fs/local/src/FreeBSD/src/sys/i386/compile/LIGHT i386

>Description:
	In network6_interface_setup() of /etc/network.subr, rtsol is ran when
	I/F auto configuration in IPv6 environment. If a PC have multiple I/F,
	rtsol is running at one time on original function.
>How-To-Repeat:
	code
>Fix:

	please see this patch.

--- diff.txt begins here ---
Index: network.subr
===================================================================
RCS file: /home/ncvs/src/etc/network.subr,v
retrieving revision 1.160
diff -c -C5 -r1.160 network.subr
*** network.subr	5 Dec 2004 21:45:36 -0000	1.160
--- network.subr	7 Dec 2004 14:34:34 -0000
***************
*** 439,451 ****
  		# Act as endhost - automatically configured.
  		# You can configure only single interface, as
  		# specification assumes that autoconfigured host has
  		# single interface only.
  		sysctl net.inet6.ip6.accept_rtadv=1
! 		set ${rtsol_interfaces}
! 		ifconfig $1 up
! 		rtsol ${rtsol_flags} $1
  	fi
  
  	for i in $interfaces; do
  		alias=0
  		while : ; do
--- 439,453 ----
  		# Act as endhost - automatically configured.
  		# You can configure only single interface, as
  		# specification assumes that autoconfigured host has
  		# single interface only.
  		sysctl net.inet6.ip6.accept_rtadv=1
! 		for i in $rtsol_interfaces; do
! 			set ${i}
! 			ifconfig $1 up
! 			rtsol ${rtsol_flags} $1
! 		done
  	fi
  
  	for i in $interfaces; do
  		alias=0
  		while : ; do
--- diff.txt ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jun 29 00:28:57 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74817 

From: Mike Makonnen <mtm@FreeBSD.Org>
To: bug-followup@FreeBSD.org, goto@snowy.to
Cc:  
Subject: Re: conf/74817: [patch] network.subr: fixed automatic
	configuration of multiple I/F in IPv6 environment
Date: Fri, 25 Jan 2008 16:57:51 +0300

 I believe the current behaviour is the correct one. From the BUGS
 section of the rtsol(8) man page:
 
         The IPv6 autoconfiguration specification assumes a
         single-interface host. You may see kernel error messages
         if you try to autoconfigure a host with multiple interfaces.
         Also, it seems contradictory for rtsold to accept multiple
         interface arguments.
 
 Cheers.
 -- 
 Mike Makonnen         | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc
 mmakonnen @ gmail.com | AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55
 mtm @ FreeBSD.Org     | FreeBSD - http://www.freebsd.org
State-Changed-From-To: open->closed 
State-Changed-By: mtm 
State-Changed-When: Fri Jan 25 14:06:22 UTC 2008 
State-Changed-Why:  
The current behaviour is the correct one (or rather it is the only 
sensible thing to do do given that the statndards don't  
cover this issue). 

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