aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Rudoy <gene.devel@gmail.com>2014-01-22 11:49:46 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2014-01-22 11:49:46 +0100
commit731f59617582d24ea5bd613e2a5448fd4027a3aa (patch)
tree64e6475d9cc61649ba425dc9009022db9d26f74b
parentfa6ab56353e84057bf1b2f740bc1e1a99af686ce (diff)
downloadbusybox-w32-731f59617582d24ea5bd613e2a5448fd4027a3aa.tar.gz
busybox-w32-731f59617582d24ea5bd613e2a5448fd4027a3aa.tar.bz2
busybox-w32-731f59617582d24ea5bd613e2a5448fd4027a3aa.zip
iplink: fix build with kernel versions prior to 2.6.23
Signed-off-by: Eugene Rudoy <gene.devel@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/libiproute/iplink.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
index 286e59ebf..506fb3c7e 100644
--- a/networking/libiproute/iplink.c
+++ b/networking/libiproute/iplink.c
@@ -31,6 +31,16 @@
31#ifndef IFLA_LINKINFO 31#ifndef IFLA_LINKINFO
32# define IFLA_LINKINFO 18 32# define IFLA_LINKINFO 18
33# define IFLA_INFO_KIND 1 33# define IFLA_INFO_KIND 1
34# define IFLA_INFO_DATA 2
35#endif
36
37#ifndef IFLA_VLAN_MAX
38# define IFLA_VLAN_ID 1
39# define IFLA_VLAN_FLAGS 2
40struct ifla_vlan_flags {
41 uint32_t flags;
42 uint32_t mask;
43};
34#endif 44#endif
35 45
36/* taken from linux/sockios.h */ 46/* taken from linux/sockios.h */