From: Vadim Kochan <[email protected]> Add match device name with "_" in /proc/net/dev.
Signed-off-by: Vadim Kochan <[email protected]> --- ifpps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ifpps.c b/ifpps.c index e70e8a6..2d64849 100644 --- a/ifpps.c +++ b/ifpps.c @@ -245,7 +245,7 @@ static int stats_proc_net_dev(const char *ifname, struct ifstat *stats) if (strstr(buff, ifname_colon) == NULL) continue; - if (sscanf(buff, "%*[a-z0-9 .-]:%llu%llu%llu%llu%llu%llu" + if (sscanf(buff, "%*[a-z0-9_ .-]:%llu%llu%llu%llu%llu%llu" "%llu%*u%llu%llu%llu%llu%llu%llu%llu", &stats->rx_bytes, &stats->rx_packets, &stats->rx_errors, &stats->rx_drops, -- 2.4.2 -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
