suricata
defrag-queue.c File Reference
#include "suricata-common.h"
#include "threads.h"
#include "debug.h"
#include "defrag-queue.h"
#include "util-error.h"
#include "util-debug.h"
#include "util-print.h"
Include dependency graph for defrag-queue.c:

Go to the source code of this file.

Functions

DefragTrackerQueueDefragTrackerQueueInit (DefragTrackerQueue *q)
 
DefragTrackerQueueDefragTrackerQueueNew ()
 
void DefragTrackerQueueDestroy (DefragTrackerQueue *q)
 Destroy a tracker queue. More...
 
void DefragTrackerEnqueue (DefragTrackerQueue *q, DefragTracker *dt)
 add a tracker to a queue More...
 
DefragTrackerDefragTrackerDequeue (DefragTrackerQueue *q)
 remove a tracker from the queue More...
 
uint32_t DefragTrackerQueueLen (DefragTrackerQueue *q)
 

Detailed Description

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

Defrag tracker queue handler functions

Definition in file defrag-queue.c.

Function Documentation

DefragTracker* DefragTrackerDequeue ( DefragTrackerQueue q)

remove a tracker from the queue

Parameters
qqueue
Return values
dttracker or NULL if empty list.

Definition at line 103 of file defrag-queue.c.

References DefragTrackerQueue_::bot, BUG_ON, DQLOCK_LOCK, DQLOCK_UNLOCK, DefragTrackerQueue_::len, DefragTracker_::lnext, DefragTracker_::lprev, and DefragTrackerQueue_::top.

Referenced by DefragHashShutdown().

Here is the caller graph for this function:

void DefragTrackerEnqueue ( DefragTrackerQueue q,
DefragTracker dt 
)

add a tracker to a queue

Parameters
qqueue
dttracker

Definition at line 70 of file defrag-queue.c.

References DefragTrackerQueue_::bot, BUG_ON, DQLOCK_LOCK, DQLOCK_UNLOCK, DefragTrackerQueue_::len, DefragTracker_::lnext, DefragTracker_::lprev, and DefragTrackerQueue_::top.

Referenced by DefragInitConfig(), and DefragTrackerMoveToSpare().

Here is the caller graph for this function:

void DefragTrackerQueueDestroy ( DefragTrackerQueue q)

Destroy a tracker queue.

Parameters
qthe tracker queue to destroy

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

References DQLOCK_DESTROY.

Referenced by DefragHashShutdown().

Here is the caller graph for this function:

DefragTrackerQueue* DefragTrackerQueueInit ( DefragTrackerQueue q)

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

References DQLOCK_INIT.

Referenced by DefragInitConfig(), and DefragTrackerQueueNew().

Here is the caller graph for this function:

uint32_t DefragTrackerQueueLen ( DefragTrackerQueue q)

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

References DQLOCK_LOCK, DQLOCK_UNLOCK, DefragTrackerQueue_::len, and len.

Referenced by DefragTrackerSpareQueueGetSize().

Here is the caller graph for this function:

DefragTrackerQueue* DefragTrackerQueueNew ( void  )

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

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

Here is the call graph for this function: