suricata
ippair-storage.h File Reference
#include "util-storage.h"
#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.

Functions

unsigned int IPPairStorageSize (void)
 
void * IPPairGetStorageById (IPPair *h, int id)
 
int IPPairSetStorageById (IPPair *h, int id, void *ptr)
 
void * IPPairAllocStorageById (IPPair *h, int id)
 
void IPPairFreeStorageById (IPPair *h, int id)
 
void IPPairFreeStorage (IPPair *h)
 
void RegisterIPPairStorageTests (void)
 
int IPPairStorageRegister (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

IPPair wrapper around storage api

Definition in file ippair-storage.h.

Function Documentation

◆ IPPairAllocStorageById()

void* IPPairAllocStorageById ( IPPair h,
int  id 
)

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

References STORAGE_IPPAIR, and StorageAllocByIdPrealloc().

Here is the call graph for this function:

◆ IPPairFreeStorage()

void IPPairFreeStorage ( IPPair h)

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

References IPPairStorageSize(), STORAGE_IPPAIR, and StorageFreeAll().

Referenced by IPPairCleanup(), and IPPairClearMemory().

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

◆ IPPairFreeStorageById()

void IPPairFreeStorageById ( IPPair h,
int  id 
)

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

References STORAGE_IPPAIR, and StorageFreeById().

Here is the call graph for this function:

◆ IPPairGetStorageById()

void* IPPairGetStorageById ( IPPair h,
int  id 
)

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

References STORAGE_IPPAIR, and StorageGetById().

Referenced by IPPairBitsTimedoutCheck(), IPPairHasBits(), ThresholdIPPairHasThreshold(), and ThresholdIPPairTimeoutCheck().

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

◆ IPPairSetStorageById()

int IPPairSetStorageById ( IPPair h,
int  id,
void *  ptr 
)

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

References STORAGE_IPPAIR, and StorageSetById().

Here is the call graph for this function:

◆ IPPairStorageRegister()

int IPPairStorageRegister ( const char *  name,
const unsigned int  size,
void *(*)(unsigned int)  Alloc,
void(*)(void *)  Free 
)

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

References STORAGE_IPPAIR, and StorageRegister().

Here is the call graph for this function:

◆ IPPairStorageSize()

unsigned int IPPairStorageSize ( void  )

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

References STORAGE_IPPAIR, and StorageGetSize().

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

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

◆ RegisterIPPairStorageTests()

void RegisterIPPairStorageTests ( void  )

Definition at line 292 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: