[git commit] iplink: fix build with kernel versions prior to 2.6.23

Denys Vlasenko vda.linux at googlemail.com
Wed Jan 22 10:49:46 UTC 2014


commit: http://git.busybox.net/busybox/commit/?id=731f59617582d24ea5bd613e2a5448fd4027a3aa
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Eugene Rudoy <gene.devel at gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/libiproute/iplink.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
index 286e59e..506fb3c 100644
--- a/networking/libiproute/iplink.c
+++ b/networking/libiproute/iplink.c
@@ -31,6 +31,16 @@
 #ifndef IFLA_LINKINFO
 # define IFLA_LINKINFO 18
 # define IFLA_INFO_KIND 1
+# define IFLA_INFO_DATA 2
+#endif
+
+#ifndef IFLA_VLAN_MAX
+# define IFLA_VLAN_ID 1
+# define IFLA_VLAN_FLAGS 2
+struct ifla_vlan_flags {
+	uint32_t	flags;
+	uint32_t	mask;
+};
 #endif
 
 /* taken from linux/sockios.h */


More information about the busybox-cvs mailing list