From masaru@turbolinux.co.jp  Mon Oct  2 02:32:15 2000
Return-Path: <masaru@turbolinux.co.jp>
Received: from mail.turbolinux.co.jp (mail.turbolinux.co.jp [210.171.55.67])
	by hub.freebsd.org (Postfix) with ESMTP id E698137B502
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon,  2 Oct 2000 02:32:13 -0700 (PDT)
Received: from localhost (tlgw1.turbolinux.co.jp [210.171.55.80])
	by mail.turbolinux.co.jp (8.9.3+3.2W/3.7Wpl2) with ESMTP id SAA31073
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 2 Oct 2000 18:32:10 +0900
Message-Id: <20001002183014F.masaru@turbolinux.co.jp>
Date: Mon, 02 Oct 2000 18:30:14 +0900
From: Masaru Yokoi <masaru@turbolinux.co.jp>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: Multi network interface will not be work well in /etc/rc.network6.

>Number:         21694
>Category:       conf
>Synopsis:       Multi network interface will not be work well in /etc/rc.network6.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ume
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 02 02:40:01 PDT 2000
>Closed-Date:    Sun Oct 29 12:01:56 PST 2000
>Last-Modified:  Sun Oct 29 12:04:18 PST 2000
>Originator:     Masaru Yokoi
>Release:        FreeBSD 4.1.1-RELEASE i386
>Organization:
TurboLinux Japan, K.K.
>Environment:

* FreeBSD 4.1.1-RELEASE i386
* /etc/rc.network6 CVS Revision is 1.5.2.6

>Description:

In network6_pass1() in rc.network6 of shell script, it should do "ifconfig"
and "rtsol" for each network interfaces.
But now, it is using a variable (ipv6_network_interfaces) of whole of
IPv6 network interface. It should use valiable of each network interface
using with "for i in ${ipv6_network_interfaces}".

>How-To-Repeat:

* Prepare 2 or more NIC.
* Configure in /etc/rc.conf
---
ipv6_gateway_enable="NO"
ipv6_network_interfaces="AUTO"
---

>Fix:

Please apply this patch.


--- ./rc.network6	Wed Sep 27 21:19:30 2000
+++ /etc/rc.network6	Wed Sep 27 21:13:39 2000
@@ -190,14 +190,16 @@
 		sysctl -w net.inet6.ip6.forwarding=0
 		sysctl -w net.inet6.ip6.accept_rtadv=1
 
-		case ${ipv6_network_interfaces} in
-		lo0|gif*|stf*|faith*)
-			;;
-		*)
-			ifconfig ${ipv6_network_interfaces} up
-			rtsol ${ipv6_network_interfaces}
-			;;
-		esac
+		for i in ${ipv6_network_interfaces} ; do
+			case ${i} in
+			lo0|gif*|stf*|faith*)
+				;;
+			*)
+				ifconfig ${i} up
+				rtsol ${i}
+				;;
+			esac
+		done
 
 		# wait for DAD's completion (for global addrs)
 		sleep `sysctl -n net.inet6.ip6.dad_count`

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ume 
Responsible-Changed-By: johan 
Responsible-Changed-When: Thu Oct 5 14:41:49 PDT 2000 
Responsible-Changed-Why:  
Over to IPv6 maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21694 
State-Changed-From-To: open->analyzed 
State-Changed-By: ume 
State-Changed-When: Mon Oct 9 09:46:57 PDT 2000 
State-Changed-Why:  
There is an assumption that IPv6 end node have only one interface.  If 
a host listen RAs from more than one interfaces, a host will confuse 
how to treat at least default route. 
However, we should provide the method to be able to treat the end host 
that has more than one interfaces.  I'm working on it and I'll commit 
it in near the future. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21694 
State-Changed-From-To: analyzed->closed 
State-Changed-By: ume 
State-Changed-When: Sun Oct 29 12:01:56 PST 2000 
State-Changed-Why:  
I just committed new rc.network6.  It is expected to solve your problem. 
Thanks! 

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