busybox 1.22.1: add upstream iplink fix
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 23 Jan 2014 10:21:15 +0000 (07:21 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 23 Jan 2014 11:46:14 +0000 (12:46 +0100)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/busybox/1.22.1/0004-busybox-1.22.1-iplink.patch [new file with mode: 0644]

diff --git a/package/busybox/1.22.1/0004-busybox-1.22.1-iplink.patch b/package/busybox/1.22.1/0004-busybox-1.22.1-iplink.patch
new file mode 100644 (file)
index 0000000..dbd76c5
--- /dev/null
@@ -0,0 +1,19 @@
+--- busybox-1.22.1/networking/libiproute/iplink.c
++++ busybox-1.22.1-iplink/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 */