From owner-freebsd-current@FreeBSD.ORG Mon Apr 21 10:40:22 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 D9FDD106564A for ; Mon, 21 Apr 2008 10:40:22 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 89C448FC1A for ; Mon, 21 Apr 2008 10:40:22 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender:X-Spam-Status:Subject; b=pxbyIJrvrm5Az+YTlw91Df/G591Iu5nhzyOAs/N+I+JtSdRmJt0zcMPyu9JMkdyOr32NSGDt6vo2VaBBR/mVnnUQctRPoWmqWzpcwQkZfAbLeeCWLKgreb4DQvSU2q8YHcrgeBw4SZkksQmkDi8pNACSFjdfNUUwIIXTYw3o7M8=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1JntRc-000GbN-O8; Mon, 21 Apr 2008 14:40:20 +0400 Date: Mon, 21 Apr 2008 14:40:19 +0400 From: Eygene Ryabinkin To: Zaphod Beeblebrox Message-ID: 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: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <3BdnONI1bT08mgV1Is+vnPQaMNw@OG4t+/sM8WGI7cjjTW4/N4fcF6w> Sender: rea-fbsd@codelabs.ru X-Spam-Status: No, score=-1.8 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_40 Cc: Poul-Henning Kamp , 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 10:40:22 -0000 Zaphod, good day. 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 dhclient > > only called dhclient-script (which contains your code snippet) only for 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 largely > > 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. > > OK, will check the FreeBSD's dhclient. Thanks! 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. Do you know why the EXIT case is unhandled? -- Eygene