From owner-freebsd-current@FreeBSD.ORG Mon Apr 21 16:26:15 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F2AF106564A for ; Mon, 21 Apr 2008 16:26:15 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id BAC4D8FC22 for ; Mon, 21 Apr 2008 16:26:14 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.2/8.14.2) with ESMTP id m3LGQEha019732; Mon, 21 Apr 2008 11:26:14 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.2/8.14.2/Submit) id m3LGQCZe019731; Mon, 21 Apr 2008 11:26:12 -0500 (CDT) (envelope-from brooks) Date: Mon, 21 Apr 2008 11:26:12 -0500 From: Brooks Davis To: Eygene Ryabinkin Message-ID: <20080421162612.GA19629@lor.one-eyed-alien.net> References: <7ExUpek150AdEdP4WR1b6w@lz+EvuNSgXKgs9kqjMxQNA> <72123.1197626129@critter.freebsd.dk> <5f67a8c40804141026s27672065sb11a7f327572c0f2@mail.gmail.com> <5f67a8c40804141044v69557b92w7db0b272d6b9b848@mail.gmail.com> <3BdnONI1bT08mgV1Is+vnPQaMNw@OG4t+/sM8WGI7cjjTW4/N4fcF6w> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Mon, 21 Apr 2008 11:26:14 -0500 (CDT) Cc: Poul-Henning Kamp , Zaphod Beeblebrox , freebsd-current@freebsd.org Subject: Re: [RFC] Automated generation of /etc/resolv.conf from the rc.d script X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2008 16:26:15 -0000 --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 21, 2008 at 02:40:19PM +0400, Eygene Ryabinkin wrote: > Zaphod, good day. >=20 > Mon, Apr 14, 2008 at 09:52:05PM +0400, Eygene Ryabinkin wrote: > > Mon, Apr 14, 2008 at 01:44:53PM -0400, Zaphod Beeblebrox wrote: > > > Yes... well to be more clear, the OpenBSD dhclient didn't call > > > dhclient-script for the EXIT cause. In fact, IIRC, the OpenBSD dhcli= ent > > > only called dhclient-script (which contains your code snippet) only f= or the > > > initial setup (setting flags on the interface and such) The dhclient= -script > > > included with the OpenBSD dhclient (or at least the one we use) is la= rgely > > > the same as the isc-dhclient script. If you instrument the dhclient-= script > > > with some logging to check when it's called by dhclient, you may find= it > > > isn't called the documented number of times. > >=20 > > OK, will check the FreeBSD's dhclient. Thanks! >=20 > Checked the source -- seems like the script_init/script_go is called > the proper number of times, but the EXIT cause is missing. And I > see that dhclient-script is called on the lease renewals too: the > forwarders file is renewed. The EXIT is not relevant to me now, > but I will think of possible scenarios where it would be needed. >=20 > Do you know why the EXIT case is unhandled? I'm not entierly sure. It seems to me that it should be handled, but the failure to handle it may be tied to a design decision by OpenBSD or it might be that it doesn't matter for anything their script currently supports. -- Brooks --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFIDMAjXY6L6fI4GtQRAqBQAKDMj62b6JX1/LrPVfWDqvI1Fs+bMgCfdeFp LUXgf/8QfLwdu7IZNt2SQuY= =5Vy3 -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--