diff options
Diffstat (limited to 'networking/tc.c')
-rw-r--r-- | networking/tc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/tc.c b/networking/tc.c index c84c18a67..d0bcbdeaa 100644 --- a/networking/tc.c +++ b/networking/tc.c | |||
@@ -29,6 +29,7 @@ | |||
29 | //usage: "filter show [ dev STRING ] [ root | parent CLASSID ]" | 29 | //usage: "filter show [ dev STRING ] [ root | parent CLASSID ]" |
30 | 30 | ||
31 | #include "libbb.h" | 31 | #include "libbb.h" |
32 | #include "common_bufsiz.h" | ||
32 | 33 | ||
33 | #include "libiproute/utils.h" | 34 | #include "libiproute/utils.h" |
34 | #include "libiproute/ip_common.h" | 35 | #include "libiproute/ip_common.h" |
@@ -63,13 +64,14 @@ struct globals { | |||
63 | uint32_t filter_prio; | 64 | uint32_t filter_prio; |
64 | uint32_t filter_proto; | 65 | uint32_t filter_proto; |
65 | } FIX_ALIASING; | 66 | } FIX_ALIASING; |
66 | #define G (*(struct globals*)&bb_common_bufsiz1) | 67 | #define G (*(struct globals*)bb_common_bufsiz1) |
67 | #define filter_ifindex (G.filter_ifindex) | 68 | #define filter_ifindex (G.filter_ifindex) |
68 | #define filter_qdisc (G.filter_qdisc) | 69 | #define filter_qdisc (G.filter_qdisc) |
69 | #define filter_parent (G.filter_parent) | 70 | #define filter_parent (G.filter_parent) |
70 | #define filter_prio (G.filter_prio) | 71 | #define filter_prio (G.filter_prio) |
71 | #define filter_proto (G.filter_proto) | 72 | #define filter_proto (G.filter_proto) |
72 | #define INIT_G() do { \ | 73 | #define INIT_G() do { \ |
74 | setup_common_bufsiz(); \ | ||
73 | BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \ | 75 | BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \ |
74 | } while (0) | 76 | } while (0) |
75 | 77 | ||