From owner-freebsd-stable@FreeBSD.ORG Sun May 14 22:48:12 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 8687F16A40B for ; Sun, 14 May 2006 22:48:04 +0000 (UTC) (envelope-from jr@opal.com) Received: from smtp.vzavenue.net (smtp.vzavenue.net [66.171.59.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE4BD43D49 for ; Sun, 14 May 2006 22:48:02 +0000 (GMT) (envelope-from jr@opal.com) Received: from 118.79.171.66.subscriber.vzavenue.net (HELO linwhf.opal.com) ([66.171.79.118]) by smtp.vzavenue.net with ESMTP; 14 May 2006 18:48:00 -0400 X-REPUTATION: -0.7 X-REMOTE-IP: 66.171.79.118 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== X-IronPort-AV: i="4.05,127,1146456000"; d="scan'208"; a="27698489:sNHT14524920" Received: from ASSP-nospam (localhost [127.0.0.1]) (authenticated bits=0) by linwhf.opal.com (8.13.6/8.13.6) with ESMTP id k4EMlwTM072473 for ; Sun, 14 May 2006 18:47:59 -0400 (EDT) (envelope-from jr@opal.com) Received: from 71.247.44.252 ([71.247.44.252] helo=vougeot.opal.com) by ASSP-nospam ; 14 May 06 22:47:58 -0000 Received: from vougeot.opal.com (localhost [127.0.0.1]) by vougeot.opal.com (8.13.6/8.13.6) with ESMTP id k4EMmH8L034254 for ; Sun, 14 May 2006 18:48:18 -0400 (EDT) (envelope-from jr@opal.com) Received: (from jr@localhost) by vougeot.opal.com (8.13.6/8.13.6/Submit) id k4EMmHMX034253 for freebsd-stable@freebsd.org; Sun, 14 May 2006 18:48:17 -0400 (EDT) (envelope-from jr) Date: Sun, 14 May 2006 18:48:16 -0400 From: "J.R. Oldroyd" To: freebsd-stable@freebsd.org Message-ID: <20060514224816.GA65273@vougeot.opal.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: 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: Sun, 14 May 2006 22:48:44 -0000 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. Interestingly, if dhclient is run manually, immediately following this, as in: # killall dhclient # dhclient wi0 the dhclient-script invocations then do not include the EXPIRE, as one would expect: Sun May 14 18:36:49 EDT 2006 dhclient reason=PREINIT Sun May 14 18:36:50 EDT 2006 dhclient reason=REBOOT 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? Tcpdumping the DHCP dialog on shows a perfectly normal exchange with the server, by the way. -jr