]> The Tcpdump Group git mirrors - libpcap/commitdiff
Note some other ways to get link statistics.
authorGuy Harris <[email protected]>
Tue, 8 Sep 2009 00:52:55 +0000 (17:52 -0700)
committerGuy Harris <[email protected]>
Tue, 8 Sep 2009 00:52:55 +0000 (17:52 -0700)
pcap-linux.c

index aeae6de99ffc4531b15629ebb3f53179603c692d..35251292c6e2a5ab6fd0ee4a7d31ab619a172469 100644 (file)
@@ -890,7 +890,14 @@ pcap_can_set_rfmon_linux(pcap_t *handle)
        return 0;
 }
 
-/* grabs the number of dropped packets by the interface from /proc/net/dev */
+/*
+ * Grabs the number of dropped packets by the interface from /proc/net/dev.
+ *
+ * XXX - what about /sys/class/net/{interface name}/rx_*?  There are
+ * individual devices giving, in ASCII, various rx_ and tx_ statistics.
+ *
+ * Or can we get them in binary form from netlink?
+ */
 static long int
 linux_if_drops(const char * if_name)
 {