diff options
author | guy <guy> | 2008-07-01 08:02:33 +0000 |
---|---|---|
committer | guy <guy> | 2008-07-01 08:02:33 +0000 |
commit | 34624f128f2e6f937c04317fdd2c0ae6d8883ad5 (patch) | |
tree | df708730b36c2a96e7ee94c7b926d4d5bf4d6e64 /pcap_activate.3pcap | |
parent | a8e63c60ed4d25d27c890ecab14e1a831dbeb198 (diff) | |
download | libpcap-34624f128f2e6f937c04317fdd2c0ae6d8883ad5.tar.gz |
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.
Diffstat (limited to 'pcap_activate.3pcap')
-rw-r--r-- | pcap_activate.3pcap | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pcap_activate.3pcap b/pcap_activate.3pcap index 0adf6ac1..b33fa530 100644 --- a/pcap_activate.3pcap +++ b/pcap_activate.3pcap @@ -1,4 +1,4 @@ -.\" @(#) $Header: /tcpdump/master/libpcap/pcap_activate.3pcap,v 1.4 2008-04-09 21:26:12 guy Exp $ +.\" @(#) $Header: /tcpdump/master/libpcap/pcap_activate.3pcap,v 1.5 2008-07-01 08:02:33 guy Exp $ .\" .\" Copyright (c) 1994, 1996, 1997 .\" The Regents of the University of California. All rights reserved. @@ -54,9 +54,11 @@ exist, if the process doesn't have permission to open the capture source, .B PCAP_ERROR_RFMON_NOTSUP if monitor mode was specified but the capture source doesn't support -monitor mode, and +monitor mode, +.B PCAP_ERROR_IFACE_NOT_UP +if the capture source is not up, and .B PCAP_ERROR -if an error occurred. +if another error occurred. If .B PCAP_WARNING or |