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

void* IPPairAllocStorageById ( IPPair h,
int  id 
)

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

References STORAGE_IPPAIR, and StorageAllocByIdPrealloc().

Referenced by IPPairStorageRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

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:

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:

void* IPPairGetStorageById ( IPPair h,
int  id 
)

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

References STORAGE_IPPAIR, and StorageGetById().

Referenced by AppLayerExpectationCreate(), AppLayerExpectationSetup(), IPPairBitsTimedoutCheck(), IPPairHasBits(), IPPairStorageRegister(), ThresholdIPPairHasThreshold(), and ThresholdIPPairTimeoutCheck().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

References STORAGE_IPPAIR, and StorageSetById().

Referenced by AppLayerExpectationCreate(), AppLayerExpectationGetDataId(), IPPairBitsTimedoutCheck(), IPPairStorageRegister(), and ThresholdIPPairTimeoutCheck().

Here is the call graph for this function:

Here is the caller graph for this function:

int IPPairStorageRegister ( const char *  name,
const unsigned int  size,
void *(*)(unsigned int)  Alloc,
void(*)(void *)  Free 
)
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:

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: