From: Eric Leblond Date: Wed, 13 Feb 2019 15:11:53 +0000 (+0100) Subject: af-packet: fix loading of ebpf filter X-Git-Tag: suricata-5.0.0-rc1~374 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd28f77a1e5342bf746198ba7a63d5301a83c5e8;p=thirdparty%2Fsuricata.git af-packet: fix loading of ebpf filter --- 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) {