|
suricata
|

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) |
IPPair wrapper around storage api
Definition in file ippair-storage.c.
| void* IPPairAllocStorageById | ( | IPPair * | h, |
| IPPairStorageId | id | ||
| ) |
Definition at line 45 of file ippair-storage.c.
References IPPair_::storage, STORAGE_IPPAIR, and StorageAllocByIdPrealloc().

| 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().


| 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(), and IPPairHasBits().


| int IPPairSetStorageById | ( | IPPair * | h, |
| IPPairStorageId | id, | ||
| void * | ptr | ||
| ) |
Definition at line 40 of file ippair-storage.c.
References IPPair_::storage, STORAGE_IPPAIR, and StorageSetById().

| 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, name, STORAGE_IPPAIR, and StorageRegister().

| unsigned int IPPairStorageSize | ( | void | ) |
Definition at line 30 of file ippair-storage.c.
References STORAGE_IPPAIR, and StorageGetSize().
Referenced by IPPairClearMemory(), IPPairFreeStorage(), and IPPairInitConfig().


| void RegisterIPPairStorageTests | ( | void | ) |
Definition at line 226 of file ippair-storage.c.
References UtRegisterTest().
Referenced by IPPairRegisterUnittests().

