suricata
ippair-storage.c File Reference
#include "suricata-common.h"
#include "ippair-storage.h"
#include "util-unittest.h"
Include dependency graph for ippair-storage.c:

Go to the source code of this file.

Functions

unsigned int IPPairStorageSize (void)
 
void * IPPairGetStorageById (IPPair *h, IPPairStorageId id)
 
int IPPairSetStorageById (IPPair *h, IPPairStorageId id, void *ptr)
 
void * IPPairAllocStorageById (IPPair *h, IPPairStorageId id)
 
void IPPairFreeStorage (IPPair *h)
 
IPPairStorageId IPPairStorageRegister (const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *))
 
void RegisterIPPairStorageTests (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.c.

Function Documentation

◆ IPPairAllocStorageById()

void* IPPairAllocStorageById ( IPPair h,
IPPairStorageId  id 
)

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

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

Here is the call graph for this function:

◆ IPPairFreeStorage()

void IPPairFreeStorage ( IPPair h)

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

References IPPairStorageSize(), IPPair_::storage, 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:

◆ IPPairGetStorageById()

void* IPPairGetStorageById ( IPPair h,
IPPairStorageId  id 
)

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

References IPPair_::storage, 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,
IPPairStorageId  id,
void *  ptr 
)

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

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

Here is the call graph for this function:

◆ IPPairStorageRegister()

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

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

References IPPairStorageId::id, 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: