aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-usb-linux.c
diff options
context:
space:
mode:
authorguy <guy>2008-12-23 19:05:26 +0000
committerguy <guy>2008-12-23 19:05:26 +0000
commit687233847f996ba6ab48322e67bf1262d7764540 (patch)
tree1379b54b1e8a79582b14e8fcff9205dd6d0be71d /pcap-usb-linux.c
parentfb218e8ff5dcc191c9f523912023d8fc620f1dc8 (diff)
ps_ifdrop is the number of packets dropped by the interface and not even
handed to the host; ps_drop is the number of packets dropped by the capture mechanism because it ran out of buffer space. We don't know the former, so set it to 0; we *do* know the latter, but it's ps_drop, not ps_ifdrop.
Diffstat (limited to 'pcap-usb-linux.c')
-rw-r--r--pcap-usb-linux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c
index b56d733..e8c3972 100644
--- a/pcap-usb-linux.c
+++ b/pcap-usb-linux.c
@@ -34,7 +34,7 @@
*/
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-usb-linux.c,v 1.28 2008-12-23 18:03:22 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-usb-linux.c,v 1.29 2008-12-23 19:05:26 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -613,7 +613,8 @@ usb_stats_linux_bin(pcap_t *handle, struct pcap_stat *stats)
}
stats->ps_recv = handle->md.packets_read + st.queued;
- stats->ps_ifdrop = st.dropped;
+ stats->ps_ifdrop = 0;
+ stats->ps_drop = st.dropped;
return 0;
}