From owner-freebsd-bugs Mon Apr 16 23:10: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D6FDA37B42C for ; Mon, 16 Apr 2001 23:10:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3H6A0u43533; Mon, 16 Apr 2001 23:10:00 -0700 (PDT) (envelope-from gnats) Received: from hobbes.melthusia.org (dt035n37.san.rr.com [24.30.140.55]) by hub.freebsd.org (Postfix) with ESMTP id 3FEBB37B42C for ; Mon, 16 Apr 2001 23:01:22 -0700 (PDT) (envelope-from gordont@hobbes.melthusia.org) Received: (from gordont@localhost) by hobbes.melthusia.org (8.11.3/8.11.3) id f3H61FX00712; Mon, 16 Apr 2001 23:01:15 -0700 (PDT) (envelope-from gordont) Message-Id: <200104170601.f3H61FX00712@hobbes.melthusia.org> Date: Mon, 16 Apr 2001 23:01:15 -0700 (PDT) From: gordont@bluemtn.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: conf/26633: pccards don't get ipv6 network configured when ipv6_gateway_enable is set Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26633 >Category: conf >Synopsis: pccards don't get ipv6 network configured when ipv6_gateway_enable is set >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 16 23:10:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Gordon Tetlow >Release: FreeBSD 4.3-RC i386 >Organization: Blue Mountain >Environment: System: FreeBSD hobbes.melthusia.org 4.3-RC FreeBSD 4.3-RC #0: Sat Mar 24 03:31:30 PST 2001 root@hobbes.melthusia.org:/local/obj/usr/src/sys/HOBBES i386 >Description: Using a machine that is a router with several interfaces, one of which is a wireless card, the pccard interface is not setup as an ipv6 capable interface. Basically, pccards are only allowed as endhosts. >How-To-Repeat: Turn on ipv6_gateway_enable in /etc/rc.conf and watch you wavelan card not get setup >Fix: I hacked up rc.network6 and pccard_ether so that the interface(s) that will be attempted to be brought up are passed to the function. This allows network6_interface_setup() to be reused and called by /etc/pccard_ether Anyway, here's the patch: --- etc/pccard_ether Mon Feb 12 21:00:57 2001 +++ /etc/pccard_ether Mon Apr 16 22:44:06 2001 @@ -122,17 +122,10 @@ # IPv6 setup case ${ipv6_enable} in [Yy][Ee][Ss]) - case ${ipv6_gateway_enable} in - [Yy][Ee][Ss]) - ;; - *) - sysctl -w net.inet6.ip6.forwarding=0 - sysctl -w net.inet6.ip6.accept_rtadv=1 - ifconfig ${interface} up - rtsol ${interface} - ;; - esac - ;; + if [ -r /etc/rc.network6 ]; then + . /etc/rc.network6 + network6_interface_setup ${interface} + fi esac ;; # Stop the interface --- etc/rc.network6 Fri Mar 23 23:35:53 2001 +++ /etc/rc.network6 Mon Apr 16 22:44:14 2001 @@ -129,7 +129,7 @@ network6_gif_setup # setting up interfaces - network6_interface_setup + network6_interface_setup $ipv6_network_interfaces # wait for DAD's completion (for global addrs) sleep `sysctl -n net.inet6.ip6.dad_count` @@ -251,6 +251,7 @@ } network6_interface_setup() { + interfaces=$* rtsol_interfaces='' case ${ipv6_gateway_enable} in [Yy][Ee][Ss]) @@ -261,7 +262,7 @@ prefixcmd_enable=NO ;; esac - for i in $ipv6_network_interfaces; do + for i in $interfaces; do rtsol_interface=yes eval prefix=\$ipv6_prefix_$i if [ -n "${prefix}" ]; then >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message