From: Victor Julien Date: Thu, 3 Oct 2013 07:58:06 +0000 (+0200) Subject: Improve 'host-mode' info message X-Git-Tag: suricata-2.0beta2~242 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d6bca72f7a6b35deb366e5e0e28c3ee4df080ec;p=thirdparty%2Fsuricata.git Improve 'host-mode' info message --- diff --git a/src/suricata.c b/src/suricata.c index b2219eb5ff..5f42bda290 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -1778,7 +1778,7 @@ static int PostConfLoadedSetup(SCInstance *suri) } else if (!strcmp(hostmode, "sniffer-only")) { host_mode = SURI_HOST_IS_SNIFFER_ONLY; } else { - if (strcmp(hostmode, "auto")) { + if (strcmp(hostmode, "auto") != 0) { WarnInvalidConfEntry("host-mode", "%s", "auto"); } if (IS_ENGINE_MODE_IPS(engine_mode)) { @@ -1790,12 +1790,12 @@ static int PostConfLoadedSetup(SCInstance *suri) } else { if (IS_ENGINE_MODE_IPS(engine_mode)) { host_mode = SURI_HOST_IS_ROUTER; - SCLogInfo("No 'host-mode': suricata in IPS mode, so" - "automatic setting to 'router'"); + SCLogInfo("No 'host-mode': suricata is in IPS mode, using " + "default setting 'router'"); } else { host_mode = SURI_HOST_IS_SNIFFER_ONLY; - SCLogInfo("No 'host-mode': suricata in IDS mode, so" - "automatic setting to 'sniffer-only'"); + SCLogInfo("No 'host-mode': suricata is in IDS mode, using " + "default setting 'sniffer-only'"); } } return TM_ECODE_OK;