|
|
|
|
@ -1074,12 +1074,9 @@ TmEcode DetectEngineThreadCtxInit(ThreadVars *tv, void *initdata, void **data) {
|
|
|
|
|
PatternMatchThreadPrepare(&det_ctx->mtcs, de_ctx->mpm_matcher, DetectContentMaxId(de_ctx));
|
|
|
|
|
PatternMatchThreadPrepare(&det_ctx->mtcu, de_ctx->mpm_matcher, DetectUricontentMaxId(de_ctx));
|
|
|
|
|
|
|
|
|
|
//PmqSetup(&det_ctx->pmq, DetectEngineGetMaxSigId(de_ctx), DetectContentMaxId(de_ctx));
|
|
|
|
|
PmqSetup(&det_ctx->pmq, 0, de_ctx->max_fp_id);
|
|
|
|
|
//PmqSetup(&det_ctx->pmq, 0, DetectContentMaxId(de_ctx));
|
|
|
|
|
int i;
|
|
|
|
|
for (i = 0; i < 256; i++) {
|
|
|
|
|
//PmqSetup(&det_ctx->smsg_pmq[i], 0, DetectContentMaxId(de_ctx));
|
|
|
|
|
PmqSetup(&det_ctx->smsg_pmq[i], 0, de_ctx->max_fp_id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1163,11 +1160,10 @@ static TmEcode DetectEngineThreadCtxInitForLiveRuleSwap(ThreadVars *tv, void *in
|
|
|
|
|
PatternMatchThreadPrepare(&det_ctx->mtcs, de_ctx->mpm_matcher, DetectContentMaxId(de_ctx));
|
|
|
|
|
PatternMatchThreadPrepare(&det_ctx->mtcu, de_ctx->mpm_matcher, DetectUricontentMaxId(de_ctx));
|
|
|
|
|
|
|
|
|
|
//PmqSetup(&det_ctx->pmq, DetectEngineGetMaxSigId(de_ctx), DetectContentMaxId(de_ctx));
|
|
|
|
|
PmqSetup(&det_ctx->pmq, 0, DetectContentMaxId(de_ctx));
|
|
|
|
|
PmqSetup(&det_ctx->pmq, 0, de_ctx->max_fp_id);
|
|
|
|
|
int i;
|
|
|
|
|
for (i = 0; i < 256; i++) {
|
|
|
|
|
PmqSetup(&det_ctx->smsg_pmq[i], 0, DetectContentMaxId(de_ctx));
|
|
|
|
|
PmqSetup(&det_ctx->smsg_pmq[i], 0, de_ctx->max_fp_id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* IP-ONLY */
|
|
|
|
|
|