From robert@fledge.watson.org  Wed Aug  2 11:57:52 2000
Return-Path: <robert@fledge.watson.org>
Received: from fledge.watson.org (fledge.watson.org [204.156.12.50])
	by hub.freebsd.org (Postfix) with ESMTP id 4FAD937BF25
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  2 Aug 2000 11:57:46 -0700 (PDT)
	(envelope-from robert@fledge.watson.org)
Received: (from robert@localhost)
	by fledge.watson.org (8.9.3/8.9.3) id OAA94888;
	Wed, 2 Aug 2000 14:57:41 -0400 (EDT)
	(envelope-from robert)
Message-Id: <200008021857.OAA94888@fledge.watson.org>
Date: Wed, 2 Aug 2000 14:57:41 -0400 (EDT)
From: rwatson@freebsd.org
Sender: robert@fledge.watson.org
Reply-To: rwatson@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: dhclient doesn't know what to do when an interface disappears
X-Send-Pr-Version: 3.2

>Number:         20363
>Category:       bin
>Synopsis:       dhclient doesn't know what to do when an interface disappears
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 02 12:00:01 PDT 2000
>Closed-Date:    Wed Aug 2 12:54:44 PDT 2000
>Last-Modified:  Tue Aug  8 02:20:02 PDT 2000
>Originator:     Robert Watson
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
>Environment:

pccard environment, DHCP in use to configure IP on card

>Description:

Leaving the ethernet card in the slot, suspend, then wake up the notebook.
if_detach() will free th struct ifnet, and BPF will return an appropriate
error to dhclient (I believe, haven't tracked it down quite), but dhclient
apparently doesn't know how to deal with that.

Aug  1 12:53:35 numocking dhclient: receive_packet failed on wi0: Device not con
figured
Aug  1 12:53:58 numocking last message repeated 167598 times

>How-To-Repeat:

suspend notebook, wake it up, watch syslog

>Fix:

errno checking in the receive packet event loop probably needs to check
for ENXIO, which indicates that the device is no longer valid.  Not
sure what it should do next -- probably exit.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Wed Aug 2 12:51:54 PDT 2000 
Responsible-Changed-Why:  
David seems to have taken dhclient under his wing... 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20363 
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Wed Aug 2 12:54:44 PDT 2000 
State-Changed-Why:  
This needs to be submitted to ISC/Ted Lemon. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20363 

From: "David O'Brien" <obrien@FreeBSD.org>
To: Robert Watson <rwatson@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/20363: dhclient doesn't know what to do when an interface disappears
Date: Tue, 8 Aug 2000 02:17:05 -0700

 On Mon, Aug 07, 2000 at 11:11:48PM -0400, Robert Watson wrote:
 > I forwarded to other people at ISC and they seemd to be unable to do
 > anything with it.
 
 Did you email Ted Lemon <mellon@nominum.com> directly?  He attends some
 of the ITEF meetings doesn't he?  Just last week he responded to a
 FreeBSD user with a dhclient 2.0 problem (I was CC'ed on it).  So I know
 he is alive and kicking.
 
>Unformatted:
 >
