|
suricata
|
#include "flow.h"

Go to the source code of this file.
Data Structures | |
| struct | FlowStorageId |
Typedefs | |
| typedef struct FlowStorageId | FlowStorageId |
Functions | |
| unsigned int | FlowStorageSize (void) |
| void * | FlowGetStorageById (const Flow *h, FlowStorageId id) |
| int | FlowSetStorageById (Flow *h, FlowStorageId id, void *ptr) |
| void * | FlowAllocStorageById (Flow *h, FlowStorageId id) |
| void | FlowFreeStorageById (Flow *h, FlowStorageId id) |
| void | FlowFreeStorage (Flow *h) |
| void | RegisterFlowStorageTests (void) |
| FlowStorageId | 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.
| typedef struct FlowStorageId FlowStorageId |
| void* FlowAllocStorageById | ( | Flow * | h, |
| FlowStorageId | id | ||
| ) |
Definition at line 50 of file flow-storage.c.
References Flow_::storage, STORAGE_FLOW, and StorageAllocByIdPrealloc().

| void FlowFreeStorage | ( | Flow * | h | ) |
Definition at line 60 of file flow-storage.c.
References FlowStorageSize(), Flow_::storage, STORAGE_FLOW, and StorageFreeAll().
Referenced by FlowClearMemory().


| void FlowFreeStorageById | ( | Flow * | h, |
| FlowStorageId | id | ||
| ) |
Definition at line 55 of file flow-storage.c.
References Flow_::storage, STORAGE_FLOW, and StorageFreeById().

| void* FlowGetStorageById | ( | const Flow * | h, |
| FlowStorageId | id | ||
| ) |
Definition at line 40 of file flow-storage.c.
References Flow_::storage, STORAGE_FLOW, and StorageGetById().
Referenced by EveAddFlow(), PacketBypassCallback(), and TagFlowAdd().


| int FlowSetStorageById | ( | Flow * | h, |
| FlowStorageId | id, | ||
| void * | ptr | ||
| ) |
Definition at line 45 of file flow-storage.c.
References Flow_::storage, STORAGE_FLOW, and StorageSetById().
Referenced by PacketBypassCallback().


| FlowStorageId FlowStorageRegister | ( | const char * | name, |
| const unsigned int | size, | ||
| void *(*)(unsigned int) | Alloc, | ||
| void(*)(void *) | Free | ||
| ) |
Definition at line 66 of file flow-storage.c.
References FlowStorageId::id, name, STORAGE_FLOW, and StorageRegister().
Referenced by RegisterFlowBypassInfo().


| unsigned int FlowStorageSize | ( | void | ) |
Definition at line 35 of file flow-storage.c.
References STORAGE_FLOW, and StorageGetSize().
Referenced by FlowAlloc(), FlowFree(), FlowFreeStorage(), and FlowInitConfig().


| void RegisterFlowStorageTests | ( | void | ) |
Definition at line 298 of file flow-storage.c.
References UtRegisterTest().
