suricata
|
Go to the source code of this file.
Functions | |
unsigned int | FlowStorageSize (void) |
void * | FlowGetStorageById (Flow *h, int id) |
int | FlowSetStorageById (Flow *h, int id, void *ptr) |
void * | FlowAllocStorageById (Flow *h, int id) |
void | FlowFreeStorageById (Flow *h, int id) |
void | FlowFreeStorage (Flow *h) |
void | RegisterFlowStorageTests (void) |
int | FlowStorageRegister (const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *)) |
Flow wrapper around storage api
Definition in file flow-storage.h.
void* FlowAllocStorageById | ( | Flow * | h, |
int | id | ||
) |
Definition at line 49 of file flow-storage.c.
References STORAGE_FLOW, and StorageAllocByIdPrealloc().
Referenced by FlowStorageRegister().
void FlowFreeStorage | ( | Flow * | h | ) |
Definition at line 59 of file flow-storage.c.
References FlowStorageSize(), STORAGE_FLOW, and StorageFreeAll().
Referenced by FlowClearMemory().
void FlowFreeStorageById | ( | Flow * | h, |
int | id | ||
) |
Definition at line 54 of file flow-storage.c.
References STORAGE_FLOW, and StorageFreeById().
void* FlowGetStorageById | ( | Flow * | h, |
int | id | ||
) |
Definition at line 39 of file flow-storage.c.
References STORAGE_FLOW, and StorageGetById().
Referenced by AFPSetBPFFilter(), AppLayerExpectationHandle(), FlowDisableFlowManagerThread(), FlowStorageRegister(), JsonAddFlow(), TagFlowAdd(), and TagHashAddTag().
int FlowSetStorageById | ( | Flow * | h, |
int | id, | ||
void * | ptr | ||
) |
Definition at line 44 of file flow-storage.c.
References STORAGE_FLOW, and StorageSetById().
Referenced by AppLayerExpectationHandle(), FlowStorageRegister(), PacketBypassCallback(), TagFlowAdd(), and TagHashAddTag().
int FlowStorageRegister | ( | const char * | name, |
const unsigned int | size, | ||
void *(*)(unsigned int) | Alloc, | ||
void(*)(void *) | Free | ||
) |
Definition at line 65 of file flow-storage.c.
References FLOW_QUIET, FlowAlloc(), FlowAllocStorageById(), FlowClearMemory(), FlowFree(), FlowGetStorageById(), FlowInitConfig(), FlowSetStorageById(), FlowShutdown(), FlowStorageRegister(), SCFree, SCMalloc, STORAGE_FLOW, StorageCleanup(), StorageFinalize(), StorageInit(), StorageRegister(), and unlikely.
Referenced by AppLayerExpectationSetup(), FlowStorageRegister(), RegisterFlowBypassInfo(), and TagInitCtx().
unsigned int FlowStorageSize | ( | void | ) |
Definition at line 34 of file flow-storage.c.
References STORAGE_FLOW, and StorageGetSize().
Referenced by FlowAlloc(), FlowFree(), FlowFreeStorage(), FlowInitConfig(), and FlowSetupPacket().
void RegisterFlowStorageTests | ( | void | ) |
Definition at line 289 of file flow-storage.c.
References UtRegisterTest().
Referenced by FlowRegisterTests().