DetectEngineMasterCtx_ Struct Reference

#include <detect.h>

Collaboration diagram for DetectEngineMasterCtx_:

Data Fields

SCMutex lock
int multi_tenant_enabled
uint32_t version
enum DetectEngineTenantSelectors tenant_selector
int keyword_id

Detailed Description

Definition at line 1399 of file detect.h.

Field Documentation

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 1415 of file detect.h.

Referenced by DetectEngineMoveToFreeList(), and DetectEnginePruneFreeList().

int DetectEngineMasterCtx_::keyword_id

Definition at line 1427 of file detect.h.

Referenced by DetectEngineResetMaxSigId(), and DetectRegisterThreadCtxGlobalFuncs().

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 1426 of file detect.h.

Referenced by DetectEngineResetMaxSigId(), and DetectRegisterThreadCtxGlobalFuncs().

DetectEngineCtx* DetectEngineMasterCtx_::list

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

Definition at line 1410 of file detect.h.

Referenced by DetectEngineDeReference(), DetectEngineEnabled(), DetectEngineGetByTenantId(), DetectEngineGetCurrent(), DetectEngineMoveToFreeList(), DetectEngineMTApply(), and DetectEngineResetMaxSigId().

int DetectEngineMasterCtx_::multi_tenant_enabled

enable multi tenant mode

Definition at line 1403 of file detect.h.

Referenced by DetectEngineMultiTenantEnabled(), and DetectEngineMultiTenantSetup().

DetectEngineTenantMapping* DetectEngineMasterCtx_::tenant_mapping_list

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

Definition at line 1421 of file detect.h.

Referenced by DetectEngineMultiTenantSetup(), and DetectEngineResetMaxSigId().

enum DetectEngineTenantSelectors DetectEngineMasterCtx_::tenant_selector
uint32_t DetectEngineMasterCtx_::version

version, incremented after each 'apply to threads'

Definition at line 1406 of file detect.h.

Referenced by DetectEngineBumpVersion(), and DetectEngineGetVersion().

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