Brad Bishop | 1fdf4aa | 2019-09-09 14:56:41 -0400 | [diff] [blame^] | 1 | From b37554e0bc3cf383e6547c5c6a69c6f6849c09e3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Eric Leblond <eric@regit.org> |
| 3 | Date: Wed, 17 Jul 2019 12:35:12 +0200 |
| 4 | Subject: [PATCH] af-packet: fix build on recent Linux kernels |
| 5 | |
| 6 | Upstream-Status: Backport |
| 7 | Signed-off-by: Armin kuster <akuster808@gmail.com> |
| 8 | --- |
| 9 | src/source-af-packet.c | 4 ++++ |
| 10 | 1 file changed, 4 insertions(+) |
| 11 | |
| 12 | Index: 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> |