Home
last modified time | relevance | path

Searched refs:ths_ctx (Results 1 – 3 of 3) sorted by relevance

/dports/security/suricata/suricata-6.0.4/src/
H A Ddetect-engine-threshold.c582 de_ctx->ths_ctx.th_entry[s->num] = new_tsh; in ThresholdHandlePacketRule()
631 SCMutexLock(&de_ctx->ths_ctx.threshold_table_lock); in PacketAlertThreshold()
633 SCMutexUnlock(&de_ctx->ths_ctx.threshold_table_lock); in PacketAlertThreshold()
647 if (SCMutexInit(&de_ctx->ths_ctx.threshold_table_lock, NULL) != 0) { in ThresholdHashInit()
711 de_ctx->ths_ctx.th_size = highest_signum + 1; in ThresholdHashAllocate()
712 de_ctx->ths_ctx.th_entry = SCCalloc(de_ctx->ths_ctx.th_size, sizeof(DetectThresholdEntry *)); in ThresholdHashAllocate()
713 if (de_ctx->ths_ctx.th_entry == NULL) { in ThresholdHashAllocate()
718 de_ctx->ths_ctx.th_size); in ThresholdHashAllocate()
730 if (de_ctx->ths_ctx.th_entry != NULL) in ThresholdContextDestroy()
731 SCFree(de_ctx->ths_ctx.th_entry); in ThresholdContextDestroy()
[all …]
H A Ddetect.h819 ThresholdCtx ths_ctx; member
H A Dutil-threshold-config.c1755 FAIL_IF_NULL(de_ctx->ths_ctx.th_entry[s->num]); in SCThresholdConfTest10()