Note some other ways to get link statistics.
This commit is contained in:
parent
ef9aa50d23
commit
d2ec25429b
|
@ -890,7 +890,14 @@ pcap_can_set_rfmon_linux(pcap_t *handle)
|
||||||
return 0;
|
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
|
static long int
|
||||||
linux_if_drops(const char * if_name)
|
linux_if_drops(const char * if_name)
|
||||||
{
|
{
|
||||||
|
|
Reference in New Issue