From owner-svn-src-all@FreeBSD.ORG Sat Apr 11 03:00:37 2009 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E8C61065677; Sat, 11 Apr 2009 03:00:37 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (smtp.timeweb.ru [217.170.79.85]) by mx1.freebsd.org (Postfix) with ESMTP id D852F8FC20; Sat, 11 Apr 2009 03:00:36 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LsTSP-0001N0-Ba; Sat, 11 Apr 2009 07:00:37 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 2550BC6B7; Sat, 11 Apr 2009 07:00:52 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id E828B10883E; Sat, 11 Apr 2009 07:00:17 +0400 (MSD) Date: Sat, 11 Apr 2009 07:00:17 +0400 From: Dmitry Marakasov To: Brooks Davis Message-ID: <20090411030017.GA1713@hades.panopticon> References: <200903191248.n2JCm0Rd061331@svn.freebsd.org> <20090409131253.GB7795@hades.panopticon> <20090409153805.GB83847@lor.one-eyed-alien.net> <20090409155138.GD7795@hades.panopticon> <20090409161549.GC83847@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20090409161549.GC83847@lor.one-eyed-alien.net> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, Dag-Erling Smorgrav Subject: Re: svn commit: r190031 - head/etc/defaults X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2009 03:00:37 -0000 * Brooks Davis (brooks@FreeBSD.org) wrote: > > I use ale(4). Will test some more. Couldn't the fact that the interface > > is renamed be the reason? > > Shouldn't be. I use renamed interfaces a fair bit. The ale(4) driver > uses mii, but so lack of link events shouldn't be an issue unless the > driver is buggy. > > > Also, how is the issue of services not starting because of no default > > route/dns/network available solved when running dhclient from devd? > > The wait in /etc/rc.d/defaultroute. OK, an hour of reboots and I've nailed it. The cause is that by the time defaultroute is executed, there's no link on the interface -> wait for route is skipped (see defaultroute_start). Some lines from dmesg: ale0: port 0xdc00-0xdc7f mem 0xfe9c0000-0xfe9fffff irq 17 at device 0.0 on pci2 ale0: 960 Tx FIFO, 1024 Rx FIFO ale0: Using 1 MSI messages. miibus0: on ale0 atphy0: PHY 0 on miibus0 atphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto ale0: Ethernet address: 00:22:15:75:15:b2 ale0: [FILTER] ... (many other devices) ale0: changing name to 'panopticon' panopticon: link state changed to DOWN panopticon: no link .....panopticon: link state changed to UP got link DHCPREQUEST on panopticon to 255.255.255.255 port 67 DHCPREQUEST on panopticon to 255.255.255.255 port 67 DHCPACK from 192.168.0.2 bound to 192.168.0.32 -- renewal in 43200 seconds. Turning off name change won't help - it still linkdowns after detection like that. I think that check for live interface should be removed from defaultroute. -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://www.amdmi3.ru