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.6-1+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3bc14768fd28c0afc909ae91eca1506990af6587;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 dc1d8660..4db31868 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 */