Date: 7 Dec 2004 15:06:31 -0000 From: Yoshikazu GOTO <goto@snowy.to> To: FreeBSD-gnats-submit@FreeBSD.org Cc: goto@snowy.to Subject: conf/74817: [patch] Fixed automatic configuration of multiple I/F in IPv6 environment Message-ID: <20041207150631.1763.qmail@light.snowy.to> Resent-Message-ID: <200412071510.iB7FATrP066902@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 74817
>Category: conf
>Synopsis: [patch] Fixed automatic configuration of multiple I/F in IPv6 environment
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 07 15:10:29 GMT 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041207150631.1763.qmail>
