suricata
ippair-queue.c File Reference
#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"
Include dependency graph for ippair-queue.c:

Go to the source code of this file.

Functions

IPPairQueueIPPairQueueInit (IPPairQueue *q)
 
IPPairQueueIPPairQueueNew ()
 
void IPPairQueueDestroy (IPPairQueue *q)
 Destroy a ippair queue. More...
 
void IPPairEnqueue (IPPairQueue *q, IPPair *h)
 add a ippair to a queue More...
 
IPPairIPPairDequeue (IPPairQueue *q)
 remove a ippair from the queue More...
 
uint32_t IPPairQueueLen (IPPairQueue *q)
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

IPPair queue handler functions

Definition in file ippair-queue.c.

Function Documentation

IPPair* IPPairDequeue ( IPPairQueue q)

remove a ippair from the queue

Parameters
qqueue
Return values
hippair 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 IPPairCleanup(), and IPPairShutdown().

Here is the caller graph for this function:

void IPPairEnqueue ( IPPairQueue q,
IPPair h 
)

add a ippair to a queue

Parameters
qqueue
hippair

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

Here is the caller graph for this function:

void IPPairQueueDestroy ( IPPairQueue q)

Destroy a ippair queue.

Parameters
qthe ippair queue to destroy

Definition at line 59 of file ippair-queue.c.

References HQLOCK_DESTROY.

Referenced by IPPairShutdown().

Here is the caller graph for this function:

IPPairQueue* IPPairQueueInit ( IPPairQueue q)

Definition at line 34 of file ippair-queue.c.

References HQLOCK_INIT.

Referenced by IPPairInitConfig(), and IPPairQueueNew().

Here is the caller graph for this function:

uint32_t IPPairQueueLen ( IPPairQueue q)

Definition at line 136 of file ippair-queue.c.

References HQLOCK_LOCK, HQLOCK_UNLOCK, IPPairQueue_::len, and len.

Referenced by IPPairSpareQueueGetSize().

Here is the caller graph for this function:

IPPairQueue* IPPairQueueNew ( void  )

Definition at line 43 of file ippair-queue.c.

References IPPairQueueInit(), SC_ERR_FATAL, SCLogError, and SCMalloc.

Here is the call graph for this function: