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 | |
Brad Bishop | 3216ad4 | 2019-10-09 10:30:40 -0400 | [diff] [blame] | 12 | Index: suricata-4.1.5/src/source-af-packet.c |
Brad Bishop | 1fdf4aa | 2019-09-09 14:56:41 -0400 | [diff] [blame] | 13 | =================================================================== |
Brad Bishop | 3216ad4 | 2019-10-09 10:30:40 -0400 | [diff] [blame] | 14 | --- 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 Bishop | 1fdf4aa | 2019-09-09 14:56:41 -0400 | [diff] [blame] | 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> |