]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
iptunnel: Fix compile error in ip/tunnel.c
authorPhil Sutter <phil@nwl.cc>
Mon, 21 Dec 2015 19:42:56 +0000 (20:42 +0100)
committerStephen Hemminger <shemming@brocade.com>
Tue, 22 Dec 2015 05:33:51 +0000 (21:33 -0800)
I repeatedly failed to get this right, so now I have to clean up my mess
afterwards.

Fixes: 7d6aadcd0a1dc ("ip{,6}tunnel: have a shared stats parser/printer")
Signed-off-by: Phil Sutter <phil@nwl.cc>
ip/tunnel.c

index 1dd809227fed447af5c8a1eae2a6073df86b336d..39f825baee867add0f92b0073b2f5a53c271937b 100644 (file)
@@ -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,