From jwk@stack.nl  Mon Feb  3 08:04:31 2003
Return-Path: <jwk@stack.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B722037B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  3 Feb 2003 08:04:31 -0800 (PST)
Received: from hexagon.stack.nl (hexagon.stack.nl [131.155.140.144])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CF88B43F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  3 Feb 2003 08:04:30 -0800 (PST)
	(envelope-from jwk@stack.nl)
Received: by hexagon.stack.nl (Postfix, from userid 65534)
	id 684151CA6; Mon,  3 Feb 2003 17:04:29 +0100 (CET)
Received: from turtle.stack.nl (turtle-ng.ipv6.stack.nl [2001:610:1108:5011:2e0:81ff:fe22:51d8])
	by hexagon.stack.nl (Postfix) with ESMTP id B13BC1CA5
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  3 Feb 2003 17:04:28 +0100 (CET)
Received: by turtle.stack.nl (Postfix, from userid 887)
	id DFD241CC31; Mon,  3 Feb 2003 17:04:34 +0000 (GMT)
Message-Id: <20030203170434.DFD241CC31@turtle.stack.nl>
Date: Mon,  3 Feb 2003 17:04:34 +0000 (GMT)
From: Jan Willem Knopper <jwk@stack.nl>
Reply-To: Jan Willem Knopper <jwk@stack.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] rtsol impossible with fixed addres or prefix on another interface
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         47854
>Category:       conf
>Synopsis:       [PATCH] rtsol impossible with fixed addres or prefix on another interface
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ume
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 03 08:10:10 PST 2003
>Closed-Date:    Sat Feb 08 08:18:43 PST 2003
>Last-Modified:  Sat Feb 08 08:18:43 PST 2003
>Originator:     Jan Willem Knopper
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
M.C.G.V. Stack
>Environment:
System: FreeBSD temp3.stack.nl 5.0-CURRENT FreeBSD 5.0-CURRENT #4: Tue
Jan 28 16:30:39 GMT 2003 compiler@host:/usr/obj/usr/src/sys/TURTLE i386
>Description:
	It is impossible to use rtsol on one interface and a fixed
	addres or prefix on another.
>How-To-Repeat:
from /etc/rc.conf (where auto = `ifconfig -l` = xl0 xl1 lo0)
	ipv6_enable="YES"
	ipv6_ifconfig_xl1='PREFIX::c0:ffee prefixlen 64'
	ipv6_network_interfaces="auto"
>Fix:

--- /etc/rc.d/network_ipv6.orig	Thu Jan 16 20:30:29 2003
+++ /etc/rc.d/network_ipv6	Mon Feb  3 16:52:35 2003
@@ -86,7 +86,7 @@
 		rtsol_interface=yes
 		eval prefix=\$ipv6_prefix_$i
 		if [ -n "${prefix}" ]; then
-			rtsol_available=no
+#			rtsol_available=no
 			rtsol_interface=no
 			laddr=`network6_getladdr $i`
 			hostid=`expr "${laddr}" : 'fe80::\(.*\)%\(.*\)'`
@@ -106,7 +106,7 @@
 		fi
 		eval ipv6_ifconfig=\$ipv6_ifconfig_$i
 		if [ -n "${ipv6_ifconfig}" ]; then
-			rtsol_available=no
+#			rtsol_available=no
 			rtsol_interface=no
 			ifconfig $i inet6 ${ipv6_ifconfig} alias
 		fi
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ume 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Wed Feb 5 03:47:47 PST 2003 
Responsible-Changed-Why:  
I think the IPv6 specs may not all both manually and automatically configured 
interfaces, but UMEMOTO-san will know for certain. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47854 
State-Changed-From-To: open->closed 
State-Changed-By: ume 
State-Changed-When: Sat Feb 8 08:09:40 PST 2003 
State-Changed-Why:  
Your patch is incomplete.  With your patch, no one can disable to 
listen RA. 
And, I don't recommend to have an auto configured address and a 
static assigned addess at same time.  However, someone want to do 
so. 
There is ipv6_ifconfig_IF_aliasN for this purpose, already. 

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