From d2ec25429b161802821a3e7e5e47d7acf2d317c5 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 7 Sep 2009 17:52:55 -0700 Subject: [PATCH] Note some other ways to get link statistics. --- pcap-linux.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) {