]> The Tcpdump Group git mirrors - libpcap/commit
When activating a device, return PCAP_ERROR_IFACE_NOT_UP if the device
authorguy <guy>
Tue, 1 Jul 2008 08:04:02 +0000 (08:04 +0000)
committerguy <guy>
Tue, 1 Jul 2008 08:04:02 +0000 (08:04 +0000)
commit1c1a4fad90ee333ccdf62b53a3d3d825eb30de48
tree63221ce29bcf95cdaa61444c51bed3e61919e130
parent93e7c744cde0006e0f3d867895e63dadd15cf790
When activating a device, return PCAP_ERROR_IFACE_NOT_UP if the device
isn't up, so applications can report that differently from a generic
error (the latter could mean there's a bug somewhere in libpcap).

When capturing on a device without mmap on Linux, ignore ENETDOWN, so
that we can continue to capture traffic if the interface goes down and
comes back up again; comments in the kernel indicate that we'll just
block waiting for packets if we try to receive from a socket that
delivered ENETDOWN, and, if we're using a memory-mapped buffer, we won't
even get notified of "network down" events.
pcap-bpf.c
pcap-linux.c
pcap.c
pcap/pcap.h
pcap_activate.3pcap