suricata
util-var-name.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void VarNameStoreInit (void)
 
void VarNameStoreDestroy (void)
 
uint32_t VarNameStoreRegister (const char *name, const enum VarTypes type)
 
const char * VarNameStoreSetupLookup (const uint32_t id, const enum VarTypes type)
 
void VarNameStoreUnregister (const uint32_t id, const enum VarTypes type)
 
int VarNameStoreActivate (void)
 
const char * VarNameStoreLookupById (const uint32_t id, const enum VarTypes type)
 find name for id+type at packet time. As the active store won't be modified, we don't need locks.
 
uint32_t VarNameStoreLookupByName (const char *, const enum VarTypes type)
 find name for id+type at packet time. As the active store won't be modified, we don't need locks.
 

Detailed Description

Function Documentation

◆ VarNameStoreActivate()

◆ VarNameStoreDestroy()

◆ VarNameStoreInit()

void VarNameStoreInit ( void  )

Referenced by InitGlobal().

Here is the caller graph for this function:

◆ VarNameStoreLookupById()

const char * VarNameStoreLookupById ( const uint32_t  id,
const enum VarTypes  type 
)

find name for id+type at packet time. As the active store won't be modified, we don't need locks.

Definition at line 299 of file util-var-name.c.

References HashListTableLookup(), VarNameStore_::ids, name, VariableName_::name, SC_ATOMIC_GET, type, and VariableName_::type.

Here is the call graph for this function:

◆ VarNameStoreLookupByName()

uint32_t VarNameStoreLookupByName ( const char *  name,
const enum VarTypes  type 
)

find name for id+type at packet time. As the active store won't be modified, we don't need locks.

Definition at line 319 of file util-var-name.c.

References HashListTableLookup(), VariableName_::id, name, VariableName_::name, VarNameStore_::names, SC_ATOMIC_GET, and type.

Referenced by DetectFlowintMatch().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VarNameStoreRegister()

uint32_t VarNameStoreRegister ( const char *  name,
const enum VarTypes  type 
)

◆ VarNameStoreSetupLookup()

const char * VarNameStoreSetupLookup ( const uint32_t  id,
const enum VarTypes  type 
)

Definition at line 188 of file util-var-name.c.

References HashListTableLookup(), VarNameStore_::ids, name, VariableName_::name, SCMutexLock, SCMutexUnlock, type, and VariableName_::type.

Referenced by DetectFlowbitsAnalyze(), and EngineAnalysisRules2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VarNameStoreUnregister()

void VarNameStoreUnregister ( const uint32_t  id,
const enum VarTypes  type 
)

Definition at line 201 of file util-var-name.c.

References DEBUG_VALIDATE_BUG_ON, HashListTableLookup(), VarNameStore_::ids, VariableName_::name, VariableName_::ref_cnt, SCLogDebug, SCMutexLock, SCMutexUnlock, type, and VariableName_::type.

Referenced by DetectFlowbitFree(), DetectFlowintFree(), and DetectHostbitFree().

Here is the call graph for this function:
Here is the caller graph for this function: