]> The Tcpdump Group git mirrors - libpcap/commit
When reading from a BPF device, if we get ENXIO, which means "The device
authorGuy Harris <[email protected]>
Mon, 12 Oct 2009 03:12:34 +0000 (20:12 -0700)
committerGuy Harris <[email protected]>
Mon, 12 Oct 2009 03:12:34 +0000 (20:12 -0700)
commite9de4b862ed18e08b9d1d8f04c804bed30a51431
tree0e267b49d26020ae68bc09b3ac85ee0d14b80357
parent43acbb77a8e0b3346b574b3e28793de2d6985e69
When reading from a BPF device, if we get ENXIO, which means "The device
went down" on at least some OSes, return a message indicating that.

When reading from a Linux PF_PACKET socket, if we get ENETDOWN, which
means "The device went down", return a message indicating that.

When doing a poll() on a PF_PACKET socket, check for various "something
happened on this, but it's not readable" conditions.
pcap-bpf.c
pcap-linux.c