aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2009-09-07 17:52:55 -0700
committerGuy Harris <guy@alum.mit.edu>2009-09-07 17:52:55 -0700
commitd2ec25429b161802821a3e7e5e47d7acf2d317c5 (patch)
treecc4ec0731f34ff9d5aefe4b48fbf1111321295ea /pcap-linux.c
parentef9aa50d23ab6025d6b87a866d373686ccfba534 (diff)
Note some other ways to get link statistics.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index aeae6de..3525129 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -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)
{