dect
/
libpcap
Archived
13
0
Fork 0

Note some other ways to get link statistics.

This commit is contained in:
Guy Harris 2009-09-07 17:52:55 -07:00
parent ef9aa50d23
commit d2ec25429b
1 changed files with 8 additions and 1 deletions

View 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)
{