suricata
DetectEngineMasterCtx_ Struct Reference

#include <detect.h>

Collaboration diagram for DetectEngineMasterCtx_:

Data Fields

SCMutex lock
 
int multi_tenant_enabled
 
uint32_t version
 
DetectEngineCtxlist
 
DetectEngineCtxfree_list
 
enum DetectEngineTenantSelectors tenant_selector
 
DetectEngineTenantMappingtenant_mapping_list
 
DetectEngineThreadKeywordCtxItemkeyword_list
 
int keyword_id
 

Detailed Description

Definition at line 1703 of file detect.h.

Field Documentation

◆ free_list

DetectEngineCtx* DetectEngineMasterCtx_::free_list

free list, containing detection engines that will be removed but may still be referenced by det_ctx's. Freed as soon as all references are gone.

Definition at line 1719 of file detect.h.

Referenced by DetectEnginePruneFreeList().

◆ keyword_id

int DetectEngineMasterCtx_::keyword_id

Definition at line 1731 of file detect.h.

Referenced by DetectRegisterThreadCtxGlobalFuncs().

◆ keyword_list

DetectEngineThreadKeywordCtxItem* DetectEngineMasterCtx_::keyword_list

list of keywords that need thread local ctxs, only updated by keyword registration at start up. Not covered by the lock.

Definition at line 1730 of file detect.h.

Referenced by DetectRegisterThreadCtxGlobalFuncs().

◆ list

DetectEngineCtx* DetectEngineMasterCtx_::list

list of active detection engines. This list is used to generate the threads det_ctx's

Definition at line 1714 of file detect.h.

Referenced by DetectEngineClearMaster(), DetectEngineEnabled(), DetectEngineGetByTenantId(), DetectEngineGetCurrent(), and DetectEngineMTApply().

◆ lock

◆ multi_tenant_enabled

int DetectEngineMasterCtx_::multi_tenant_enabled

enable multi tenant mode

Definition at line 1707 of file detect.h.

Referenced by DetectEngineMultiTenantEnabled(), and DetectEngineMultiTenantSetup().

◆ tenant_mapping_list

DetectEngineTenantMapping* DetectEngineMasterCtx_::tenant_mapping_list

list of tenant mappings. Updated under lock. Used to generate lookup structures.

Definition at line 1725 of file detect.h.

◆ tenant_selector

enum DetectEngineTenantSelectors DetectEngineMasterCtx_::tenant_selector

Definition at line 1721 of file detect.h.

Referenced by DetectEngineMTApply(), and DetectEngineMultiTenantSetup().

◆ version

uint32_t DetectEngineMasterCtx_::version

version, incremented after each 'apply to threads'

Definition at line 1710 of file detect.h.

Referenced by DetectEngineBumpVersion(), and DetectEngineGetVersion().


The documentation for this struct was generated from the following file: