netifd: Provide fallback IFLA_VXLAN_* definitions
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 11 May 2017 18:19:53 +0000 (11:19 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Sat, 15 Jul 2017 17:35:21 +0000 (10:35 -0700)
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
package/network/config/netifd/patches/001-ifla_vlxan.patch [new file with mode: 0644]

diff --git a/package/network/config/netifd/patches/001-ifla_vlxan.patch b/package/network/config/netifd/patches/001-ifla_vlxan.patch
new file mode 100644 (file)
index 0000000..83fb91f
--- /dev/null
@@ -0,0 +1,39 @@
+From f4b3bcdf288515e01a697283465afa29bb1f22d6 Mon Sep 17 00:00:00 2001
+From: Florian Fainelli <f.fainelli@gmail.com>
+Date: Thu, 11 May 2017 11:17:44 -0700
+Subject: [PATCH] system-linux: Provide definitions for
+ IFLA_VLXAN_{PORT,LOCAL6,GROUP6}
+
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ system-linux.c | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+diff --git a/system-linux.c b/system-linux.c
+index 3e11bdfccbad..17d15f7a02eb 100644
+--- a/system-linux.c
++++ b/system-linux.c
+@@ -2557,6 +2557,20 @@ failure:
+ #endif
+ #ifdef IFLA_VXLAN_MAX
++
++#ifndef IFLA_VXLAN_PORT
++#define IFLA_VXLAN_PORT       (IFLA_VXLAN_L3MISS + 1)
++#endif
++
++#ifndef IFLA_VXLAN_GROUP6
++#define IFLA_VXLAN_GROUP6 (IFLA_VXLAN_PORT + 1)
++#endif
++
++
++#ifndef IFLA_VXLAN_LOCAL6
++#define IFLA_VXLAN_LOCAL6 (IFLA_VXLAN_GROUP6 + 1)
++#endif
++
+ static int system_add_vxlan(const char *name, const unsigned int link, struct blob_attr **tb, bool v6)
+ {
+       struct blob_attr *tb_data[__VXLAN_DATA_ATTR_MAX];
+-- 
+2.12.2
+