suricata
|
#include "threads.h"
Go to the source code of this file.
Data Structures | |
struct | PacketQueueNoLock_ |
simple fifo queue for packets More... | |
struct | PacketQueue_ |
simple fifo queue for packets with mutex and cond Calling the mutex or triggering the cond is responsibility of the caller More... | |
Typedefs | |
typedef struct PacketQueueNoLock_ | PacketQueueNoLock |
simple fifo queue for packets More... | |
typedef struct PacketQueue_ | PacketQueue |
simple fifo queue for packets with mutex and cond Calling the mutex or triggering the cond is responsibility of the caller More... | |
Functions | |
void | PacketEnqueueNoLock (PacketQueueNoLock *qnl, struct Packet_ *p) |
void | PacketEnqueue (PacketQueue *, struct Packet_ *) |
struct Packet_ * | PacketDequeueNoLock (PacketQueueNoLock *qnl) |
struct Packet_ * | PacketDequeue (PacketQueue *) |
PacketQueue * | PacketQueueAlloc (void) |
void | PacketQueueFree (PacketQueue *) |
Definition in file packet-queue.h.
typedef struct PacketQueue_ PacketQueue |
simple fifo queue for packets with mutex and cond Calling the mutex or triggering the cond is responsibility of the caller
typedef struct PacketQueueNoLock_ PacketQueueNoLock |
simple fifo queue for packets
struct Packet_* PacketDequeue | ( | PacketQueue * | ) |
Definition at line 216 of file packet-queue.c.
Referenced by TmqhInputFlow(), TmqhInputSimple(), and TmqhReleasePacketsToPacketPool().
struct Packet_* PacketDequeueNoLock | ( | PacketQueueNoLock * | qnl | ) |
Definition at line 208 of file packet-queue.c.
Referenced by TmThreadsProcessDecodePseudoPackets().
void PacketEnqueue | ( | PacketQueue * | , |
struct Packet_ * | |||
) |
Definition at line 175 of file packet-queue.c.
Referenced by TmqhOutputFlowHash(), TmqhOutputFlowIPPair(), and TmqhOutputSimple().
void PacketEnqueueNoLock | ( | PacketQueueNoLock * | qnl, |
struct Packet_ * | p | ||
) |
Definition at line 168 of file packet-queue.c.
References DEBUG_VALIDATE_BUG_ON, and Packet_::pkt_src.
PacketQueue* PacketQueueAlloc | ( | void | ) |
Definition at line 221 of file packet-queue.c.
References PacketQueue_::cond_q, PacketQueue_::mutex_q, SCCalloc, SCCondInit, and SCMutexInit.
void PacketQueueFree | ( | PacketQueue * | ) |
Definition at line 231 of file packet-queue.c.
References PacketQueue_::cond_q, PacketQueue_::mutex_q, SCCondDestroy, SCFree, and SCMutexDestroy.
Referenced by TmqResetQueues().