suricata
|
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. More... | |
uint32_t | VarNameStoreLookupByName (const char *, const enum VarTypes type) |
find name for id+type at packet time. More... | |
Definition in file util-var-name.h.
int VarNameStoreActivate | ( | void | ) |
Definition at line 214 of file util-var-name.c.
References SCMutexLock.
void VarNameStoreDestroy | ( | void | ) |
Definition at line 116 of file util-var-name.c.
References SCMutexLock.
Referenced by GlobalsDestroy().
void VarNameStoreInit | ( | void | ) |
const char* VarNameStoreLookupById | ( | const uint32_t | id, |
const enum VarTypes | type | ||
) |
find name for id+type at packet time.
Definition at line 298 of file util-var-name.c.
References HashListTableLookup(), VarNameStore_::ids, VariableName_::name, SC_ATOMIC_GET, VariableName_::type, and type.
uint32_t VarNameStoreLookupByName | ( | const char * | , |
const enum VarTypes | type | ||
) |
find name for id+type at packet time.
Definition at line 315 of file util-var-name.c.
References HashListTableLookup(), VariableName_::id, VariableName_::name, VarNameStore_::names, SC_ATOMIC_GET, and type.
Referenced by DetectFlowintMatch().
uint32_t VarNameStoreRegister | ( | const char * | name, |
const enum VarTypes | type | ||
) |
id | or 0 on error |
Definition at line 155 of file util-var-name.c.
References SCMutexLock.
const char* VarNameStoreSetupLookup | ( | const uint32_t | id, |
const enum VarTypes | type | ||
) |
Definition at line 188 of file util-var-name.c.
References SCMutexLock.
Referenced by DetectFlowbitsAnalyze().
void VarNameStoreUnregister | ( | const uint32_t | id, |
const enum VarTypes | type | ||
) |
Definition at line 201 of file util-var-name.c.
References SCMutexLock.
Referenced by DetectFlowbitFree(), DetectFlowintFree(), and DetectHostbitFree().