suricata
|
#include "suricata-common.h"
#include "threads.h"
#include "debug.h"
#include "ippair-queue.h"
#include "util-error.h"
#include "util-debug.h"
#include "util-print.h"
Go to the source code of this file.
Functions | |
IPPairQueue * | IPPairQueueInit (IPPairQueue *q) |
IPPairQueue * | IPPairQueueNew () |
void | IPPairQueueDestroy (IPPairQueue *q) |
Destroy a ippair queue. More... | |
void | IPPairEnqueue (IPPairQueue *q, IPPair *h) |
add a ippair to a queue More... | |
IPPair * | IPPairDequeue (IPPairQueue *q) |
remove a ippair from the queue More... | |
uint32_t | IPPairQueueLen (IPPairQueue *q) |
IPPair queue handler functions
Definition in file ippair-queue.c.
IPPair* IPPairDequeue | ( | IPPairQueue * | q | ) |
remove a ippair from the queue
q | queue |
h | ippair or NULL if empty list. |
Definition at line 103 of file ippair-queue.c.
References IPPairQueue_::bot, BUG_ON, HQLOCK_LOCK, HQLOCK_UNLOCK, IPPairQueue_::len, IPPair_::lnext, IPPair_::lprev, and IPPairQueue_::top.
Referenced by IPPairShutdown().
void IPPairEnqueue | ( | IPPairQueue * | q, |
IPPair * | h | ||
) |
add a ippair to a queue
q | queue |
h | ippair |
Definition at line 70 of file ippair-queue.c.
References IPPairQueue_::bot, BUG_ON, HQLOCK_LOCK, HQLOCK_UNLOCK, IPPairQueue_::len, IPPair_::lnext, IPPair_::lprev, and IPPairQueue_::top.
Referenced by IPPairMoveToSpare().
void IPPairQueueDestroy | ( | IPPairQueue * | q | ) |
Destroy a ippair queue.
q | the ippair queue to destroy |
Definition at line 59 of file ippair-queue.c.
References HQLOCK_DESTROY.
IPPairQueue* IPPairQueueInit | ( | IPPairQueue * | q | ) |
Definition at line 34 of file ippair-queue.c.
References HQLOCK_INIT.
Referenced by IPPairQueueNew().
uint32_t IPPairQueueLen | ( | IPPairQueue * | q | ) |
Definition at line 136 of file ippair-queue.c.
References HQLOCK_LOCK, HQLOCK_UNLOCK, len, and IPPairQueue_::len.
Referenced by IPPairSpareQueueGetSize().
IPPairQueue* IPPairQueueNew | ( | ) |
Definition at line 43 of file ippair-queue.c.
References IPPairQueueInit(), SC_ERR_FATAL, SCLogError, and SCMalloc.