On 05/14/2017 03:26 PM, Daniel Borkmann wrote:
> 
> David, are you still looking into fixing this?

Sorry, I left the issue on the side and then forgot about it.

Could you try the following iproute2 patch ? Thanks

diff --git a/include/linux/seg6.h b/include/linux/seg6.h
index 0715279..dd28017 100644
--- a/include/linux/seg6.h
+++ b/include/linux/seg6.h
@@ -15,7 +15,12 @@
 #define _LINUX_SEG6_H

 #include <linux/types.h>
+
+#ifdef __KERNEL__
 #include <linux/in6.h>         /* For struct in6_addr. */
+#else
+#include <netinet/in.h>
+#endif

 /*
  * SRH
diff --git a/ip/iproute_lwtunnel.c b/ip/iproute_lwtunnel.c
index 1395f03..434e60a 100644
--- a/ip/iproute_lwtunnel.c
+++ b/ip/iproute_lwtunnel.c
@@ -20,9 +20,6 @@
 #include <linux/lwtunnel.h>
 #include <linux/mpls_iptunnel.h>

-#ifndef __USE_KERNEL_IPV6_DEFS
-#define __USE_KERNEL_IPV6_DEFS
-#endif
 #include <linux/seg6.h>
 #include <linux/seg6_iptunnel.h>
 #include <linux/seg6_hmac.h>


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to