From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 7 15:10:30 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C0EB16A4CE for ; Tue, 7 Dec 2004 15:10:30 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D666443D69 for ; Tue, 7 Dec 2004 15:10:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB7FATMG066903 for ; Tue, 7 Dec 2004 15:10:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB7FATrP066902; Tue, 7 Dec 2004 15:10:29 GMT (envelope-from gnats) Resent-Date: Tue, 7 Dec 2004 15:10:29 GMT Resent-Message-Id: <200412071510.iB7FATrP066902@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yoshikazu GOTO Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B485C16A4CE for ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: goto@snowy.to Subject: conf/74817: [patch] Fixed automatic configuration of multiple I/F in IPv6 environment X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Yoshikazu GOTO List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2004 15:10:30 -0000 >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 >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: