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  SCFlowStorageId
 

Typedefs

typedef struct SCFlowStorageId SCFlowStorageId
 

Functions

unsigned int SCFlowStorageSize (void)
 
void * SCFlowGetStorageById (const Flow *h, SCFlowStorageId id)
 
int SCFlowSetStorageById (Flow *h, SCFlowStorageId id, void *ptr)
 
void SCFlowFreeStorageById (Flow *h, SCFlowStorageId id)
 
void SCFlowFreeStorage (Flow *h)
 
void SCRegisterFlowStorageTests (void)
 
SCFlowStorageId SCFlowStorageRegister (const char *name, 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

◆ SCFlowStorageId

Function Documentation

◆ SCFlowFreeStorage()

void SCFlowFreeStorage ( Flow h)

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

References SCFlowStorageSize(), SCStorageFreeAll(), Flow_::storage, and STORAGE_FLOW.

Referenced by FlowClearMemory().

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

◆ SCFlowFreeStorageById()

void SCFlowFreeStorageById ( Flow h,
SCFlowStorageId  id 
)

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

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

Here is the call graph for this function:

◆ SCFlowGetStorageById()

void* SCFlowGetStorageById ( const Flow h,
SCFlowStorageId  id 
)

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

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

Referenced by EveAddFlow(), PacketBypassCallback(), and TagFlowAdd().

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

◆ SCFlowSetStorageById()

int SCFlowSetStorageById ( Flow h,
SCFlowStorageId  id,
void *  ptr 
)

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

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

Referenced by PacketBypassCallback().

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

◆ SCFlowStorageRegister()

SCFlowStorageId SCFlowStorageRegister ( const char *  name,
void(*)(void *)  Free 
)

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

References SCFlowStorageId::id, name, SCStorageRegister(), and STORAGE_FLOW.

Referenced by RegisterFlowBypassInfo().

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

◆ SCFlowStorageSize()

unsigned int SCFlowStorageSize ( void  )

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

References SCStorageGetSize(), and STORAGE_FLOW.

Referenced by FlowAlloc(), FlowFree(), FlowInitConfig(), and SCFlowFreeStorage().

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

◆ SCRegisterFlowStorageTests()

void SCRegisterFlowStorageTests ( void  )

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

References UtRegisterTest().

Here is the call graph for this function: