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

Go to the source code of this file.

Functions

DefragTrackerStackDefragTrackerStackInit (DefragTrackerStack *q)
 
void DefragTrackerStackDestroy (DefragTrackerStack *q)
 Destroy a tracker queue. More...
 
void DefragTrackerEnqueue (DefragTrackerStack *q, DefragTracker *dt)
 add a tracker to a queue More...
 
DefragTrackerDefragTrackerDequeue (DefragTrackerStack *q)
 remove a tracker from the queue More...
 

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-stack.c.

Function Documentation

◆ DefragTrackerDequeue()

DefragTracker* DefragTrackerDequeue ( DefragTrackerStack q)

remove a tracker from the queue

Parameters
qqueue
Return values
dttracker or NULL if empty list.

Definition at line 81 of file defrag-stack.c.

References BUG_ON, DQLOCK_LOCK, DQLOCK_UNLOCK, DefragTrackerStack_::len, DefragTracker_::lnext, and DefragTrackerStack_::s.

Referenced by DefragHashShutdown().

Here is the caller graph for this function:

◆ DefragTrackerEnqueue()

void DefragTrackerEnqueue ( DefragTrackerStack q,
DefragTracker dt 
)

add a tracker to a queue

Parameters
qqueue
dttracker

Definition at line 57 of file defrag-stack.c.

References BUG_ON, DQLOCK_LOCK, DQLOCK_UNLOCK, DefragTrackerStack_::len, DefragTracker_::lnext, and DefragTrackerStack_::s.

Referenced by DefragTrackerMoveToSpare().

Here is the caller graph for this function:

◆ DefragTrackerStackDestroy()

void DefragTrackerStackDestroy ( DefragTrackerStack q)

Destroy a tracker queue.

Parameters
qthe tracker queue to destroy

Definition at line 46 of file defrag-stack.c.

References DQLOCK_DESTROY.

◆ DefragTrackerStackInit()

DefragTrackerStack* DefragTrackerStackInit ( DefragTrackerStack q)

Definition at line 32 of file defrag-stack.c.

References DQLOCK_INIT.

Referenced by DefragInitConfig().

Here is the caller graph for this function: