From owner-freebsd-bugs@FreeBSD.ORG Wed Sep 20 14:40:46 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org 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 8F31016A40F for ; Wed, 20 Sep 2006 14:40:46 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACA9243D5D for ; Wed, 20 Sep 2006 14:40:32 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8KEeVPM047609 for ; Wed, 20 Sep 2006 14:40:31 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8KEeVfE047602; Wed, 20 Sep 2006 14:40:31 GMT (envelope-from gnats) Resent-Date: Wed, 20 Sep 2006 14:40:31 GMT Resent-Message-Id: <200609201440.k8KEeVfE047602@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, Rob Austein Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6310816A412; Wed, 20 Sep 2006 14:39:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 218D643D5F; Wed, 20 Sep 2006 14:39:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8KEd7jM047272; Wed, 20 Sep 2006 14:39:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8KEd700047271; Wed, 20 Sep 2006 14:39:07 GMT (envelope-from gnats) Message-Id: <200609201439.k8KEd700047271@freefall.freebsd.org> Date: Wed, 20 Sep 2006 14:39:07 GMT From: Rob Austein To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Mark Linimon Subject: conf/103428: devd(8): devd brings up network interfaces early and wrong X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 14:40:46 -0000 >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: