aboutsummaryrefslogtreecommitdiff
path: root/networking/arping.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/arping.c')
-rw-r--r--networking/arping.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/arping.c b/networking/arping.c
index ef205e5e6..6b0de4de2 100644
--- a/networking/arping.c
+++ b/networking/arping.c
@@ -28,6 +28,7 @@
28#include <netpacket/packet.h> 28#include <netpacket/packet.h>
29 29
30#include "libbb.h" 30#include "libbb.h"
31#include "common_bufsiz.h"
31 32
32/* We don't expect to see 1000+ seconds delay, unsigned is enough */ 33/* We don't expect to see 1000+ seconds delay, unsigned is enough */
33#define MONOTONIC_US() ((unsigned)monotonic_us()) 34#define MONOTONIC_US() ((unsigned)monotonic_us())
@@ -60,7 +61,7 @@ struct globals {
60 unsigned brd_recv; 61 unsigned brd_recv;
61 unsigned req_recv; 62 unsigned req_recv;
62} FIX_ALIASING; 63} FIX_ALIASING;
63#define G (*(struct globals*)&bb_common_bufsiz1) 64#define G (*(struct globals*)bb_common_bufsiz1)
64#define src (G.src ) 65#define src (G.src )
65#define dst (G.dst ) 66#define dst (G.dst )
66#define me (G.me ) 67#define me (G.me )
@@ -76,6 +77,7 @@ struct globals {
76#define brd_recv (G.brd_recv ) 77#define brd_recv (G.brd_recv )
77#define req_recv (G.req_recv ) 78#define req_recv (G.req_recv )
78#define INIT_G() do { \ 79#define INIT_G() do { \
80 setup_common_bufsiz(); \
79 count = -1; \ 81 count = -1; \
80} while (0) 82} while (0)
81 83