diff options
Diffstat (limited to 'networking/libiproute/ipneigh.c')
-rw-r--r-- | networking/libiproute/ipneigh.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/networking/libiproute/ipneigh.c b/networking/libiproute/ipneigh.c index 179505c2d..2a1c20e20 100644 --- a/networking/libiproute/ipneigh.c +++ b/networking/libiproute/ipneigh.c | |||
@@ -8,6 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "ip_common.h" /* #include "libbb.h" is inside */ | 10 | #include "ip_common.h" /* #include "libbb.h" is inside */ |
11 | #include "common_bufsiz.h" | ||
11 | #include "rt_names.h" | 12 | #include "rt_names.h" |
12 | #include "utils.h" | 13 | #include "utils.h" |
13 | #include <linux/neighbour.h> | 14 | #include <linux/neighbour.h> |
@@ -40,7 +41,8 @@ struct filter_t { | |||
40 | } FIX_ALIASING; | 41 | } FIX_ALIASING; |
41 | typedef struct filter_t filter_t; | 42 | typedef struct filter_t filter_t; |
42 | 43 | ||
43 | #define G_filter (*(filter_t*)&bb_common_bufsiz1) | 44 | #define G_filter (*(filter_t*)bb_common_bufsiz1) |
45 | #define INIT_G() do { setup_common_bufsiz(); } while (0) | ||
44 | 46 | ||
45 | static int flush_update(void) | 47 | static int flush_update(void) |
46 | { | 48 | { |
@@ -60,7 +62,7 @@ static unsigned nud_state_a2n(char *arg) | |||
60 | "stale\0" "incomplete\0" "delay\0" "probe\0" | 62 | "stale\0" "incomplete\0" "delay\0" "probe\0" |
61 | "failed\0" | 63 | "failed\0" |
62 | ; | 64 | ; |
63 | static uint8_t nuds[] = { | 65 | static uint8_t nuds[] ALIGN1 = { |
64 | NUD_PERMANENT,NUD_REACHABLE, NUD_NOARP,NUD_NONE, | 66 | NUD_PERMANENT,NUD_REACHABLE, NUD_NOARP,NUD_NONE, |
65 | NUD_STALE, NUD_INCOMPLETE,NUD_DELAY,NUD_PROBE, | 67 | NUD_STALE, NUD_INCOMPLETE,NUD_DELAY,NUD_PROBE, |
66 | NUD_FAILED | 68 | NUD_FAILED |
@@ -338,6 +340,8 @@ int FAST_FUNC do_ipneigh(char **argv) | |||
338 | /*0-1*/ "show\0" "flush\0"; | 340 | /*0-1*/ "show\0" "flush\0"; |
339 | int command_num; | 341 | int command_num; |
340 | 342 | ||
343 | INIT_G(); | ||
344 | |||
341 | if (!*argv) | 345 | if (!*argv) |
342 | return ipneigh_list_or_flush(argv, 0); | 346 | return ipneigh_list_or_flush(argv, 0); |
343 | 347 | ||