mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
536 B
C
27 lines
536 B
C
/* Copyright (c) 2008 Victor Julien <victor@inliniac.net> */
|
|
|
|
#ifndef __PACKET_QUEUE_H__
|
|
#define __PACKET_QUEUE_H__
|
|
|
|
#include <pthread.h>
|
|
#include "decode.h"
|
|
|
|
/* XXX: moved to decode.h */
|
|
#if 0
|
|
typedef struct PacketQueue_ {
|
|
Packet *top;
|
|
Packet *bot;
|
|
uint16_t len;
|
|
pthread_mutex_t mutex_q;
|
|
pthread_cond_t cond_q;
|
|
#ifdef DBG_PERF
|
|
uint16_t dbg_maxlen;
|
|
#endif /* DBG_PERF */
|
|
} PacketQueue;
|
|
#endif
|
|
void PacketEnqueue (PacketQueue *, Packet *);
|
|
Packet *PacketDequeue (PacketQueue *);
|
|
|
|
#endif /* __PACKET_QUEUE_H__ */
|
|
|