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

Go to the source code of this file.

Data Structures

struct  SCIPPairStorageId
 

Typedefs

typedef struct SCIPPairStorageId SCIPPairStorageId
 

Functions

unsigned int SCIPPairStorageSize (void)
 
void * SCIPPairGetStorageById (IPPair *h, SCIPPairStorageId id)
 
int SCIPPairSetStorageById (IPPair *h, SCIPPairStorageId id, void *ptr)
 
void SCIPPairFreeStorage (IPPair *h)
 
void SCRegisterIPPairStorageTests (void)
 
SCIPPairStorageId SCIPPairStorageRegister (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

IPPair wrapper around storage api

Definition in file ippair-storage.h.

Typedef Documentation

◆ SCIPPairStorageId

Function Documentation

◆ SCIPPairFreeStorage()

void SCIPPairFreeStorage ( IPPair h)

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

References SCIPPairStorageSize(), SCStorageFreeAll(), IPPair_::storage, and STORAGE_IPPAIR.

Referenced by IPPairCleanup(), and IPPairClearMemory().

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

◆ SCIPPairGetStorageById()

void* SCIPPairGetStorageById ( IPPair h,
SCIPPairStorageId  id 
)

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

References SCStorageGetById(), IPPair_::storage, and STORAGE_IPPAIR.

Referenced by IPPairBitsTimedoutCheck(), and IPPairHasBits().

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

◆ SCIPPairSetStorageById()

int SCIPPairSetStorageById ( IPPair h,
SCIPPairStorageId  id,
void *  ptr 
)

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

References SCStorageSetById(), IPPair_::storage, and STORAGE_IPPAIR.

Here is the call graph for this function:

◆ SCIPPairStorageRegister()

SCIPPairStorageId SCIPPairStorageRegister ( const char *  name,
void(*)(void *)  Free 
)

Definition at line 51 of file ippair-storage.c.

References SCIPPairStorageId::id, name, SCStorageRegister(), and STORAGE_IPPAIR.

Here is the call graph for this function:

◆ SCIPPairStorageSize()

unsigned int SCIPPairStorageSize ( void  )

Definition at line 30 of file ippair-storage.c.

References SCStorageGetSize(), and STORAGE_IPPAIR.

Referenced by IPPairClearMemory(), IPPairInitConfig(), and SCIPPairFreeStorage().

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

◆ SCRegisterIPPairStorageTests()

void SCRegisterIPPairStorageTests ( void  )

Definition at line 218 of file ippair-storage.c.

References UtRegisterTest().

Referenced by IPPairRegisterUnittests().

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