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%7.0.3-1+rpi1^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0bcc02fb7b420f3ca570defc7a22cdd82f230a85;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 a88724ea..0a7277ea 100644 --- a/ebpf/xdp_lb.c +++ b/ebpf/xdp_lb.c @@ -26,7 +26,6 @@ /* Workaround to avoid the need of 32bit headers */ #define _LINUX_IF_H #define IFNAMSIZ 16 -#include #include #include #include @@ -35,6 +34,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 */