Bug 20363 - dhclient doesn't know what to do when an interface disappears
Summary: dhclient doesn't know what to do when an interface disappears
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.1-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: David E. O'Brien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-08-02 20:00 UTC by Robert Watson
Modified: 2015-11-22 05:27 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Watson freebsd_committer freebsd_triage 2000-08-02 20:00:01 UTC
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

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.
How-To-Repeat: 
suspend notebook, wake it up, watch syslog
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-02 20:51:54 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

David seems to have taken dhclient under his wing...
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2000-08-02 20:54:44 UTC
State Changed
From-To: open->closed

This needs to be submitted to ISC/Ted Lemon.
Comment 3 David E. O'Brien freebsd_committer freebsd_triage 2000-08-08 10:17:05 UTC
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.
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-11-22 05:27:12 UTC
A commit references this bug:

Author: whu
Date: Sun Nov 22 05:26:14 UTC 2015
New revision: 291156
URL: https://svnweb.freebsd.org/changeset/base/291156

Log:
  Ignore the inbound checksum flags when doing packet forwarding in netvsc driver.

  PR: 20363
  Submitted by: whu
  Reviewed by: royger, whu
  Approved by: royger
  MFC after: 1 week
  Relnotes: No
  Sponsored by: Microsoft OSTC
  Differential Revision:  https://reviews.freebsd.org/D4131

Changes:
  head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c