From: Eric Leblond Date: Thu, 31 Oct 2019 12:29:56 +0000 (+0100) Subject: [PATCH] ebpf: avoid to include if_tunnel.h X-Git-Tag: archive/raspbian/1%6.0.1-3+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b45ec0b0784951af32634e9075052698d83294ea;p=suricata.git [PATCH] ebpf: avoid to include if_tunnel.h 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 --- diff --git a/ebpf/xdp_lb.c b/ebpf/xdp_lb.c index 2ee92457..46af2a9c 100644 --- a/ebpf/xdp_lb.c +++ b/ebpf/xdp_lb.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -32,6 +31,12 @@ #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 */