]> 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>
Mon, 10 Dec 2018 19:43:47 +0000 (20:43 +0100)
Bug #2502.

src/suricata.c

index ff19a5de1b7fab5ea6fb5c7729d409b729830324..7a8b27f6462734cef7908d231807cd8c6a1eae9d 100644 (file)
@@ -2492,13 +2492,13 @@ static int ConfigGetCaptureValue(SCInstance *suri)
                 default_packet_size = DEFAULT_PACKET_SIZE;
                 break;
 #endif /* WINDIVERT */
-            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++) {