Default to 'single' ctx for ac-gfbs as well.

remotes/origin/master-1.1.x
Victor Julien 15 years ago
parent e072841e93
commit 3bd7441ea5

@ -184,7 +184,7 @@ static uint8_t DetectEngineCtxLoadConf(DetectEngineCtx *de_ctx) {
} else if (strcmp(sgh_mpm_context, "auto") == 0) { } else if (strcmp(sgh_mpm_context, "auto") == 0) {
/* for now, since we still haven't implemented any intelligence into /* for now, since we still haven't implemented any intelligence into
* understanding the patterns and distributing mpm_ctx across sgh */ * understanding the patterns and distributing mpm_ctx across sgh */
if (de_ctx->mpm_matcher == MPM_AC) if (de_ctx->mpm_matcher == MPM_AC || de_ctx->mpm_matcher == MPM_AC_GFBS)
de_ctx->sgh_mpm_context = ENGINE_SGH_MPM_FACTORY_CONTEXT_SINGLE; de_ctx->sgh_mpm_context = ENGINE_SGH_MPM_FACTORY_CONTEXT_SINGLE;
else else
de_ctx->sgh_mpm_context = ENGINE_SGH_MPM_FACTORY_CONTEXT_FULL; de_ctx->sgh_mpm_context = ENGINE_SGH_MPM_FACTORY_CONTEXT_FULL;

@ -144,8 +144,8 @@ cuda:
device_id: 0 device_id: 0
# Select the multi pattern algorithm you want to run for scan/search the # Select the multi pattern algorithm you want to run for scan/search the
# in the engine. The supported algorithms are b2g, b3g, wumanber, ac and # in the engine. The supported algorithms are b2g, b2gc, b2gm, b3g, wumanber,
# ac-gfbs. # ac and ac-gfbs.
# #
# The mpm you choose also decides the distribution of mpm contexts for # The mpm you choose also decides the distribution of mpm contexts for
# signature groups, specified by the conf - "detect-engine.sgh_mpm_context". # signature groups, specified by the conf - "detect-engine.sgh_mpm_context".

Loading…
Cancel
Save