blob: 74e9a56c18f4813b3c399e7c3125070953556df1 [file] [log] [blame]
Brad Bishop1fdf4aa2019-09-09 14:56:41 -04001From b37554e0bc3cf383e6547c5c6a69c6f6849c09e3 Mon Sep 17 00:00:00 2001
2From: Eric Leblond <eric@regit.org>
3Date: Wed, 17 Jul 2019 12:35:12 +0200
4Subject: [PATCH] af-packet: fix build on recent Linux kernels
5
6Upstream-Status: Backport
7Signed-off-by: Armin kuster <akuster808@gmail.com>
8---
9 src/source-af-packet.c | 4 ++++
10 1 file changed, 4 insertions(+)
11
12Index: suricata-4.1.4/src/source-af-packet.c
13===================================================================
14--- suricata-4.1.4.orig/src/source-af-packet.c
15+++ suricata-4.1.4/src/source-af-packet.c
16@@ -64,6 +64,10 @@
17 #include <sys/ioctl.h>
18 #endif
19
20+#if HAVE_LINUX_SOCKIOS_H
21+#include <linux/sockios.h>
22+#endif
23+
24 #ifdef HAVE_PACKET_EBPF
25 #include "util-ebpf.h"
26 #include <bpf/libbpf.h>