Date: Fri, 16 May 2008 15:43:48 -0500 From: Brooks Davis <brooks@FreeBSD.org> To: Mike Makonnen <mtm@wubethiopia.com> Cc: cvs-src@FreeBSD.org, Brooks Davis <brooks@FreeBSD.org>, cvs-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: cvs commit: src/etc network.subr src/etc/rc.d netif src/etc/defaults rc.conf src/share/man/man5 rc.conf.5 Message-ID: <20080516204348.GA91492@lor.one-eyed-alien.net> In-Reply-To: <482DAE0A.7020309@wubethiopia.com> References: <200805150106.m4F16AHF080125@repoman.freebsd.org> <482DAE0A.7020309@wubethiopia.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 16, 2008 at 06:53:46PM +0300, Mike Makonnen wrote: > Brooks Davis wrote: >> brooks 2008-05-15 01:06:10 UTC >>=20 >> FreeBSD src repository >>=20 >> Modified files: >> etc network.subr etc/rc.d netif = =20 >> etc/defaults rc.conf share/man/man5 rc.conf.5 Log: >> Change the default value of synchronous_dhclient to NO. >> To preserve the existing behavior of etc/rc.d/netif, add code to wait >> up to if_up_delay seconds (30 seconds by default) for a default route = to >> be configured if there are any dhcp interfaces. This should be extend= ed >> to test that the interface is actually up. >=20 > Can you clue us in to the reason for the change? From the log message it= =20 > seems that it preserves the current behavior, but in a more convoluted wa= y.=20 My long term goal is to reduce the degree to which configuring interfaces at startup differs from the arrival of hot plugable or cloned interfaces. Also, once we figure out a way to easily query the link state we'll be able to use basically the same code to pause until the interface comes up which will work around some rather broken daemons that can't handle not having a working resolver. It turns out that I didn't quite get this version right. I need to move the test out of netif because devd isn't (and can't be) running at this point. > Also, if_up_delay seems to negate the need for synchronous_dhclient. That's true. I'm planning to remove it later, but I want to leave a temporary fallback in case users need the old behavior or find problems in the current behavior. -- Brooks --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFILfIDXY6L6fI4GtQRAlFKAJ9kasFa5D6iSoRCK/fSwQ1GsaVSHQCghR8r t1FQ+ARwXNiRLIbCp5h1zXY= =Z8FK -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080516204348.GA91492>