From bd28f77a1e5342bf746198ba7a63d5301a83c5e8 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Wed, 13 Feb 2019 16:11:53 +0100 Subject: [PATCH] af-packet: fix loading of ebpf filter --- src/runmode-af-packet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runmode-af-packet.c b/src/runmode-af-packet.c index aadd65fe38..40b8d8fd59 100644 --- a/src/runmode-af-packet.c +++ b/src/runmode-af-packet.c @@ -429,6 +429,7 @@ static void *ParseAFPConfig(const char *iface) ebpf_file); aconf->ebpf_filter_file = ebpf_file; aconf->ebpf_t_config.mode = AFP_MODE_EBPF_BYPASS; + aconf->ebpf_t_config.flags |= EBPF_SOCKET_FILTER; #endif ConfGetChildValueBoolWithDefault(if_root, if_default, "bypass", &conf_val); if (conf_val) {