From: Victor Julien Date: Thu, 4 Dec 2014 15:46:51 +0000 (+0100) Subject: Runmode: handle value 'auto' X-Git-Tag: suricata-2.1beta3~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b4987abc3e2b33d395e6139e70818ec7124cf3c;p=thirdparty%2Fsuricata.git Runmode: handle value 'auto' Auto now selects the default runmode for the capture method. --- diff --git a/src/runmodes.c b/src/runmodes.c index 166e627add..4f658ce56e 100644 --- a/src/runmodes.c +++ b/src/runmodes.c @@ -272,7 +272,7 @@ void RunModeDispatch(int runmode, const char *custom_mode, DetectEngineCtx *de_c } } - if (custom_mode == NULL) { + if (custom_mode == NULL || strcmp(custom_mode, "auto") == 0) { switch (runmode) { case RUNMODE_PCAP_DEV: custom_mode = RunModeIdsGetDefaultMode();