Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pcap-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,9 +771,10 @@ linux_get_stat(const char * if_name, const char * stat) {
static long long int
linux_if_drops(const char * if_name)
{
long long int dropped = linux_get_stat(if_name, "rx_dropped");
long long int missed = linux_get_stat(if_name, "rx_missed_errors");
long long int fifo = linux_get_stat(if_name, "rx_fifo_errors");
return missed + fifo;
return dropped + missed + fifo;
}


Expand Down