static int fp_engine_analysis_set = 0;
static int rule_engine_analysis_set = 0;
-SigMatch *SigMatchAlloc(void);
-void DetectExitPrintStats(ThreadVars *tv, void *data);
-
-void DbgPrintSigs(DetectEngineCtx *, SigGroupHead *);
-void DbgPrintSigs2(DetectEngineCtx *, SigGroupHead *);
static void PacketCreateMask(Packet *, SignatureMask *, AppProto, bool, int);
/**
}
}
-/* tm module api functions */
-
static DetectEngineThreadCtx *GetTenantById(HashTable *h, uint32_t id)
{
/* technically we need to pass a DetectEngineThreadCtx struct with the
return 0;
}
-void DbgPrintSigs(DetectEngineCtx *de_ctx, SigGroupHead *sgh)
-{
- if (sgh == NULL) {
- printf("\n");
- return;
- }
-
- uint32_t sig;
- for (sig = 0; sig < sgh->sig_cnt; sig++) {
- printf("%" PRIu32 " ", sgh->match_array[sig]->id);
- }
- printf("\n");
-}
-
-void DbgPrintSigs2(DetectEngineCtx *de_ctx, SigGroupHead *sgh)
-{
- if (sgh == NULL || sgh->init == NULL) {
- printf("\n");
- return;
- }
-
- uint32_t sig;
- for (sig = 0; sig < DetectEngineGetMaxSigId(de_ctx); sig++) {
- if (sgh->init->sig_array[(sig/8)] & (1<<(sig%8))) {
- printf("%" PRIu32 " ", de_ctx->sig_array[sig]->id);
- }
- }
- printf("\n");
-}
-
/** \brief finalize preparing sgh's */
int SigAddressPrepareStage4(DetectEngineCtx *de_ctx)
{