diff options
| -rw-r--r-- | networking/libiproute/iptunnel.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c index 52396efe8..23b5d5013 100644 --- a/networking/libiproute/iptunnel.c +++ b/networking/libiproute/iptunnel.c | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * iptunnel.c "ip tunnel" | 2 | * iptunnel.c "ip tunnel" |
| 3 | * | 3 | * |
| 4 | * This program is free software; you can redistribute it and/or | 4 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
| 5 | * modify it under the terms of the GNU General Public License | ||
| 6 | * as published by the Free Software Foundation; either version | ||
| 7 | * 2 of the License, or (at your option) any later version. | ||
| 8 | * | 5 | * |
| 9 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 6 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
| 10 | * | 7 | * |
| @@ -31,7 +28,9 @@ | |||
| 31 | #include <net/if_arp.h> | 28 | #include <net/if_arp.h> |
| 32 | 29 | ||
| 33 | #include <asm/types.h> | 30 | #include <asm/types.h> |
| 31 | #ifndef __constant_htons | ||
| 34 | #define __constant_htons htons | 32 | #define __constant_htons htons |
| 33 | #endif | ||
| 35 | #include <linux/if_tunnel.h> | 34 | #include <linux/if_tunnel.h> |
| 36 | 35 | ||
| 37 | #include "rt_names.h" | 36 | #include "rt_names.h" |
| @@ -468,7 +467,7 @@ static int do_tunnels_list(struct ip_tunnel_parm *p) | |||
| 468 | bb_error_msg("Wrong format of /proc/net/dev. Sorry."); | 467 | bb_error_msg("Wrong format of /proc/net/dev. Sorry."); |
| 469 | return -1; | 468 | return -1; |
| 470 | } | 469 | } |
| 471 | if (sscanf(ptr, "%ld%ld%ld%ld%ld%ld%ld%*d%ld%ld%ld%ld%ld%ld%ld", | 470 | if (sscanf(ptr, "%lu%lu%lu%lu%lu%lu%lu%*d%lu%lu%lu%lu%lu%lu%lu", |
| 472 | &rx_bytes, &rx_packets, &rx_errs, &rx_drops, | 471 | &rx_bytes, &rx_packets, &rx_errs, &rx_drops, |
| 473 | &rx_fifo, &rx_frame, &rx_multi, | 472 | &rx_fifo, &rx_frame, &rx_multi, |
| 474 | &tx_bytes, &tx_packets, &tx_errs, &tx_drops, | 473 | &tx_bytes, &tx_packets, &tx_errs, &tx_drops, |
