Message ID | 1450703298-21675-1-git-send-email-list@eworm.de |
---|---|
State | Superseded, archived |
Delegated to: | stephen hemminger |
Headers | show |
diff --git a/ip/tunnel.c b/ip/tunnel.c index 1dd8092..39f825b 100644 --- a/ip/tunnel.c +++ b/ip/tunnel.c @@ -208,7 +208,7 @@ void tnl_print_stats(const char *buf) tx_bytes, tx_packets, tx_errs, tx_drops, tx_fifo, tx_colls, tx_carrier, rx_multi; - if (sscanf(ptr, "%lu%lu%lu%lu%lu%lu%lu%*d%lu%lu%lu%lu%lu%lu%lu", + if (sscanf(buf, "%lu%lu%lu%lu%lu%lu%lu%*d%lu%lu%lu%lu%lu%lu%lu", &rx_bytes, &rx_packets, &rx_errs, &rx_drops, &rx_fifo, &rx_frame, &rx_multi, &tx_bytes, &tx_packets, &tx_errs, &tx_drops,