From: Justin Viiret Date: Mon, 23 May 2016 04:22:30 +0000 (+1000) Subject: detect-engine: log MPM/SPM matchers being used X-Git-Tag: suricata-3.1RC1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d807bf4e8a837db07830c6932d162f9758c5ad81;p=thirdparty%2Fsuricata.git detect-engine: log MPM/SPM matchers being used --- diff --git a/src/detect-engine.c b/src/detect-engine.c index dea169ed3f..3d6f513505 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -839,7 +839,9 @@ static DetectEngineCtx *DetectEngineCtxInitReal(int minimal, const char *prefix) } de_ctx->mpm_matcher = PatternMatchDefaultMatcher(); + SCLogInfo("using MPM matcher: %s", mpm_table[de_ctx->mpm_matcher].name); de_ctx->spm_matcher = SinglePatternMatchDefaultMatcher(); + SCLogInfo("using SPM matcher: %s", spm_table[de_ctx->spm_matcher].name); de_ctx->spm_global_thread_ctx = SpmInitGlobalThreadCtx(de_ctx->spm_matcher); if (de_ctx->spm_global_thread_ctx == NULL) {