diff options
Diffstat (limited to 'networking/libiproute/iproute.c')
-rw-r--r-- | networking/libiproute/iproute.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index 82827488f..e674e9a0d 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -11,6 +11,7 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include "ip_common.h" /* #include "libbb.h" is inside */ | 13 | #include "ip_common.h" /* #include "libbb.h" is inside */ |
14 | #include "common_bufsiz.h" | ||
14 | #include "rt_names.h" | 15 | #include "rt_names.h" |
15 | #include "utils.h" | 16 | #include "utils.h" |
16 | 17 | ||
@@ -43,7 +44,8 @@ struct filter_t { | |||
43 | } FIX_ALIASING; | 44 | } FIX_ALIASING; |
44 | typedef struct filter_t filter_t; | 45 | typedef struct filter_t filter_t; |
45 | 46 | ||
46 | #define G_filter (*(filter_t*)&bb_common_bufsiz1) | 47 | #define G_filter (*(filter_t*)bb_common_bufsiz1) |
48 | #define INIT_G() do { setup_common_bufsiz(); } while (0) | ||
47 | 49 | ||
48 | static int flush_update(void) | 50 | static int flush_update(void) |
49 | { | 51 | { |
@@ -902,6 +904,8 @@ int FAST_FUNC do_iproute(char **argv) | |||
902 | unsigned flags = 0; | 904 | unsigned flags = 0; |
903 | int cmd = RTM_NEWROUTE; | 905 | int cmd = RTM_NEWROUTE; |
904 | 906 | ||
907 | INIT_G(); | ||
908 | |||
905 | if (!*argv) | 909 | if (!*argv) |
906 | return iproute_list_or_flush(argv, 0); | 910 | return iproute_list_or_flush(argv, 0); |
907 | 911 | ||