Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2006 14:39:07 GMT
From:      Rob Austein <sra@hactrn.net>
To:        freebsd-gnats-submit@FreeBSD.org
Cc:        Mark Linimon <linimon@FreeBSD.org>
Subject:   conf/103428: devd(8): devd brings up network interfaces early and wrong
Message-ID:  <200609201439.k8KEd700047271@freefall.freebsd.org>
Resent-Message-ID: <200609201440.k8KEeVfE047602@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         103428
>Category:       conf
>Synopsis:       devd(8): devd brings up network interfaces early and wrong
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 20 14:40:31 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Rob Austein
>Release:        6.1-STABLE
>Organization:
>Environment:
FreeBSD adrilankha.hactrn.net 6.1-STABLE FreeBSD 6.1-STABLE #2: Tue Sep 12 08:43:49 UTC 2006     sra@adrilankha.hactrn.net:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Initial problem was that a machine with static IP address and route
configuration was losing the 2002::/16 route associated with its stf0
interface.  Upon investigation, machine was accepting router advertisements,
which it should not have been since all interfaces were staticly configured.
Following this trail eventually led to pccard_ether, which is not only
bringing up interfaces before the /etc/rc.d/network_ipv6 script has had a
chance to run but is also (incorrectly) enabling net.inet6.ip6.accept_rtadv.

pccard_ether checks for interfaces that are already up, so my guess is that
this mess is an accidental side effect of somebody having re-ordered the
scripts in /etc/rc.d so that devd now comes up earlier than it once did
(I have not checked CVS to confirm this theory).  In any case, what it does
now is wrong. :)
>How-To-Repeat:
Something like the following in /etc/rc.conf, on a network that sends IPv6
router advertisements:

ifconfig_foo0="inet 192.0.2.2 netmask 255.255.255.0"
defaultrouter="192.0.2.1"
ipv6_enable="YES"
ipv6_ifconfig_foo0="2001:db8::2 prefixlen 64"
ipv6_defaultrouter="2001:db8::1"
stf_interface_ipv4addr="192.0.2.2"
devd_enable="YES"

>Fix:
Workaround: disable devd. :)

Fix: reorder /etc/rc.d scripts or rewrite /etc/pccard_ether.
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609201439.k8KEd700047271>