From: Victor Julien Date: Mon, 10 Dec 2018 19:43:37 +0000 (+0100) Subject: capture: fix mtu plus sign names for non-netmap X-Git-Tag: suricata-4.0.7~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ab6e5579b1faebb2a3434ff4ce3c01c472e1645;p=thirdparty%2Fsuricata.git capture: fix mtu plus sign names for non-netmap Bug #2502. --- diff --git a/src/suricata.c b/src/suricata.c index fae0c5db95..cbc0513a51 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -2446,13 +2446,13 @@ static int ConfigGetCaptureValue(SCInstance *suri) int nlive; int strip_trailing_plus = 0; switch (suri->run_mode) { - case RUNMODE_PCAP_DEV: - case RUNMODE_AFP_DEV: case RUNMODE_NETMAP: /* in netmap igb0+ has a special meaning, however the * interface really is igb0 */ strip_trailing_plus = 1; /* fall through */ + case RUNMODE_PCAP_DEV: + case RUNMODE_AFP_DEV: case RUNMODE_PFRING: nlive = LiveGetDeviceCount(); for (lthread = 0; lthread < nlive; lthread++) {