blob: 530568b19cf1624ed6a6f6a0b94265b8977f6b43 [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
Brad Bishop3216ad42019-10-09 10:30:40 -040012Index: suricata-4.1.5/src/source-af-packet.c
Brad Bishop1fdf4aa2019-09-09 14:56:41 -040013===================================================================
Brad Bishop3216ad42019-10-09 10:30:40 -040014--- suricata-4.1.5.orig/src/source-af-packet.c
15+++ suricata-4.1.5/src/source-af-packet.c
16@@ -68,6 +68,10 @@
17 #include <linux/sockios.h>
Brad Bishop1fdf4aa2019-09-09 14:56:41 -040018 #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>