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 52 of file flow-storage.c.

References f, 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 47 of file flow-storage.c.

References f, 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 37 of file flow-storage.c.

References f, 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 42 of file flow-storage.c.

References f, 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 58 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 32 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 204 of file flow-storage.c.

References UtRegisterTest().

Here is the call graph for this function: