From owner-freebsd-stable@FreeBSD.ORG Mon May 15 01:52:25 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2B4116A401 for ; Mon, 15 May 2006 01:52:25 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49CE543D48 for ; Mon, 15 May 2006 01:52:25 +0000 (GMT) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id k4F1qOfW035103; Sun, 14 May 2006 18:52:24 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id k4F1qOa3035102; Sun, 14 May 2006 18:52:24 -0700 (PDT) (envelope-from david) Date: Sun, 14 May 2006 18:52:24 -0700 From: David Wolfskill To: "J.R. Oldroyd" Message-ID: <20060515015224.GO20934@bunrab.catwhisker.org> Mail-Followup-To: David Wolfskill , "J.R. Oldroyd" , freebsd-stable@freebsd.org References: <20060514224816.GA65273@vougeot.opal.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060514224816.GA65273@vougeot.opal.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org Subject: Re: bogus dhclient EXPIRE when using wi0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2006 01:52:25 -0000 On Sun, May 14, 2006 at 06:48:16PM -0400, J.R. Oldroyd wrote: > Using 6.1-STABLE cvsup'd on 5/9, I am noticing that on insertion > of a wi0 card, dhclient is invoking its dhclient-script several > times, as follows, from instrumentation added to the script: > > Sun May 14 18:34:20 EDT 2006 dhclient reason=PREINIT > Sun May 14 18:34:20 EDT 2006 dhclient reason=REBOOT > Sun May 14 18:34:21 EDT 2006 dhclient reason=EXPIRE > > The third invocation, the EXPIRE, is wrong. This EXPIRE has the > effect of causing the just-acquired IP address to be deleted, so > the i/f appears to have no IP address. > > ... > Further instrumentation of the dhclient-script shows that the > EXPIRE does seem to be premature, in that the value of $old_expiry > does appear to be (well) beyond the current time. > > Anyone have thoughts on why this is happening? I've seen it occasionally. I have been using a dhclient-exit-hooks script anyway (to set hostname, try to synch with an NTP server, and set firewall rules), so I modified my dhclient-exit-hooks script to just (log and) ignore EXPIRE requests. That could be wrong or anti-social, but then again, my laptop rarely goes more than 18 hours at a strech -- I track RELENG_6 & HEAD on it every day there's been a change in the (respective) sources.... :-} Peace, david -- David H. Wolfskill david@catwhisker.org When reading advertising, recall that "up to" means "no more than." See http://www.catwhisker.org/~david/publickey.gpg for my public key.