diff options
author | Benoît Ganne <benoit.ganne@gmail.com> | 2020-02-01 14:19:20 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2020-02-01 15:11:46 +0100 |
commit | 17ea1053cc71feca63004318aeb7deaa0a99b5c4 (patch) | |
tree | 008262010ccfe3026397fd2d4bce5a748007cfa2 | |
parent | 5f67447541f2382dfbae354d38a21b0e1482028d (diff) |
ifpps: fix iface stat parsing if uppercase
Linux netdev can contain uppercase characters.
Signed-off-by: Benoît Ganne <benoit.ganne@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | ifpps.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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-zA-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, |