]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
capture: fix mtu plus sign names for non-netmap
authorVictor Julien <victor@inliniac.net>
Mon, 10 Dec 2018 19:43:37 +0000 (20:43 +0100)
committerVictor Julien <victor@inliniac.net>
Sat, 16 Feb 2019 13:58:18 +0000 (14:58 +0100)
Bug #2502.

src/suricata.c

index fae0c5db95263205b9b0873e8435a282cb406e99..cbc0513a514bdd9744cc49ac2a394383f7144d78 100644 (file)
@@ -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++) {