suricata
flow-storage.h File Reference
#include "flow.h"
Include dependency graph for flow-storage.h:
This graph shows which files directly or indirectly include this file:

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 *))
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Flow wrapper around storage api

Definition in file flow-storage.h.

Typedef Documentation

◆ FlowStorageId

typedef struct FlowStorageId FlowStorageId

Function Documentation

◆ FlowAllocStorageById()

void* FlowAllocStorageById ( Flow h,
FlowStorageId  id 
)

Definition at line 50 of file flow-storage.c.

References Flow_::storage, STORAGE_FLOW, and StorageAllocByIdPrealloc().

Here is the call graph for this function:

◆ FlowFreeStorage()

void FlowFreeStorage ( Flow h)

Definition at line 60 of file flow-storage.c.

References FlowStorageSize(), Flow_::storage, STORAGE_FLOW, and StorageFreeAll().

Referenced by FlowClearMemory().

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

◆ FlowFreeStorageById()

void FlowFreeStorageById ( Flow h,
FlowStorageId  id 
)

Definition at line 55 of file flow-storage.c.

References Flow_::storage, STORAGE_FLOW, and StorageFreeById().

Here is the call graph for this function:

◆ FlowGetStorageById()

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().

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

◆ FlowSetStorageById()

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().

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

◆ FlowStorageRegister()

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, STORAGE_FLOW, and StorageRegister().

Referenced by RegisterFlowBypassInfo().

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

◆ FlowStorageSize()

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().

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

◆ RegisterFlowStorageTests()

void RegisterFlowStorageTests ( void  )

Definition at line 295 of file flow-storage.c.

References UtRegisterTest().

Here is the call graph for this function: