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

int VarNameStoreSetupStaging (uint32_t de_ctx_version)
 setup staging store. Include current store if there is one. More...
 
const char * VarNameStoreLookupById (const uint32_t id, const enum VarTypes type)
 
uint32_t VarNameStoreLookupByName (const char *name, const enum VarTypes type)
 
uint32_t VarNameStoreSetupAdd (const char *name, const enum VarTypes type)
 add to staging or return existing id if already in there More...
 
char * VarNameStoreSetupLookup (uint32_t idx, const enum VarTypes type)
 
void VarNameStoreActivateStaging (void)
 
void VarNameStoreFreeOld (void)
 
void VarNameStoreFree (uint32_t de_ctx_version)
 

Detailed Description

Function Documentation

◆ VarNameStoreActivateStaging()

void VarNameStoreActivateStaging ( void  )

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

References SCMutexLock.

◆ VarNameStoreFree()

void VarNameStoreFree ( uint32_t  de_ctx_version)

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

References SCLogDebug, and SCMutexLock.

◆ VarNameStoreFreeOld()

void VarNameStoreFreeOld ( void  )

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

References SCMutexLock.

◆ VarNameStoreLookupById()

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

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

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

Here is the call graph for this function:

◆ VarNameStoreLookupByName()

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

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

References BUG_ON, HashListTableLookup(), VariableName_::idx, VarNameStore_::names, SC_ATOMIC_GET, SCLogDebug, and type.

Referenced by DetectFlowintMatch().

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

◆ VarNameStoreSetupAdd()

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

add to staging or return existing id if already in there

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

References SCMutexLock.

◆ VarNameStoreSetupLookup()

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

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

References SCMutexLock.

Referenced by DetectFlowbitsAnalyze().

Here is the caller graph for this function:

◆ VarNameStoreSetupStaging()

int VarNameStoreSetupStaging ( uint32_t  de_ctx_version)

setup staging store. Include current store if there is one.

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

References SCMutexLock.