[PATCH] ebpf: avoid to include if_tunnel.h
authorEric Leblond <eric@regit.org>
Thu, 31 Oct 2019 12:29:56 +0000 (13:29 +0100)
committerSascha Steinbiss <satta@debian.org>
Thu, 21 Apr 2022 17:53:32 +0000 (18:53 +0100)
This is causing a dependency issue as file from another architecture
have to be installed.

Gbp-Pq: Name avoid-to-include-if_tunnel-h.patch

ebpf/xdp_lb.c

index dc1d8660c4dff8ea6f83060edb063b0035b16c2b..4db31868fbcbf63575c3fb849f13c26bfd05e17e 100644 (file)
@@ -26,7 +26,6 @@
 /* Workaround to avoid the need of 32bit headers */
 #define _LINUX_IF_H
 #define IFNAMSIZ 16
-#include <linux/if_tunnel.h>
 #include <linux/ip.h>
 #include <linux/ipv6.h>
 #include <linux/tcp.h>
 
 #include "hash_func01.h"
 
+#define GRE_CSUM        __cpu_to_be16(0x8000)
+#define GRE_ROUTING     __cpu_to_be16(0x4000)
+#define GRE_KEY         __cpu_to_be16(0x2000)
+#define GRE_SEQ         __cpu_to_be16(0x1000)
+#define GRE_VERSION     __cpu_to_be16(0x0007)
+
 #define LINUX_VERSION_CODE 263682
 
 /* Hashing initval */