SCReturnInt(TM_ECODE_OK);
}
-static TmEcode ParseInterfacesList(int runmode, char *pcap_dev)
+static TmEcode ParseInterfacesList(const int runmode, char *pcap_dev)
{
SCEnter();
return TM_ECODE_FAILED;
}
+ /* save the runmode from the commandline (if any) */
+ suri->aux_run_mode = suri->run_mode;
+
if (list_app_layer_protocols)
suri->run_mode = RUNMODE_LIST_APP_LAYERS;
if (list_keywords)
LogVersion();
UtilCpuPrintSummary();
- if (ParseInterfacesList(suricata.run_mode, suricata.pcap_dev) != TM_ECODE_OK) {
+ if (ParseInterfacesList(suricata.aux_run_mode, suricata.pcap_dev) != TM_ECODE_OK) {
exit(EXIT_FAILURE);
}