aboutsummaryrefslogtreecommitdiff
path: root/networking/tc.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-05-16 09:33:03 +0100
committerRon Yorston <rmy@pobox.com>2016-05-16 09:33:03 +0100
commit35d2f5bccb0f3dde600702ebcdb5424d4d50be4a (patch)
tree6e0ff0341c69839e268459a199682628bae734ed /networking/tc.c
parent248a2600a2f4b442101ad568d1994b908bb28d4b (diff)
parentf2559e5c2b7bd2c5fa0dd8e88d0a931da92a23af (diff)
downloadbusybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.tar.gz
busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.tar.bz2
busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'networking/tc.c')
-rw-r--r--networking/tc.c4
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