From: Guy Harris Date: Mon, 7 Sep 2009 23:49:10 +0000 (-0700) Subject: Note that we might not get an interface drop count from /proc/net/dev. X-Git-Tag: libpcap-1.1.0~84 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/806f42441a726fccd7baaa455f1af323b2585729 Note that we might not get an interface drop count from /proc/net/dev. --- diff --git a/pcap-linux.c b/pcap-linux.c index d2f7c51e..aeae6de9 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -1723,7 +1723,8 @@ pcap_stats_linux(pcap_t *handle, struct pcap_stat *stats) * "ps_drop" is not supported. * * "ps_ifdrop" is supported. It will return the number - * of drops the interface reports in /proc/net/dev + * of drops the interface reports in /proc/net/dev, + * if that is available. * * "ps_recv" doesn't include packets not yet read from * the kernel by libpcap.