When __USE_KERNEL_IPV6_DEFS is set, netinet/in.h will not define structures
such as in6_addr. This is useful when linux/in6.h is also included.
However, older glibc versions do not support this switch.
This patch allows iproute2 to still be compiled with older glibc versions,
along with the kernel net-next patch that updates include/linux/seg6.h.
Fixes: e8493916a8ede9970732e33ea52d30b83071f401 ("iproute: add support for
SR-IPv6 lwtunnel encapsulation")
Reported-by: Daniel Borkmann <[email protected]>
Signed-off-by: David Lebrun <[email protected]>
---
ip/iproute_lwtunnel.c | 3 ---
1 file changed, 3 deletions(-)
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>
--
2.10.2