Go to the documentation of this file.
24 #ifndef SURICATA_SOURCE_NFQ_H
25 #define SURICATA_SOURCE_NFQ_H
30 #include <linux/netfilter.h>
31 #include <libnetfilter_queue/libnetfilter_queue.h>
34 #define NFQ_MAX_QUEUE 65535
55 struct nfnl_handle *
nh;
59 struct nfq_q_handle *
qh;
struct NFQQueueVars_ NFQQueueVars
void * NFQGetThread(int number)
Get a pointer to the NFQ thread at index.
void * NFQGetQueue(int number)
Get a pointer to the NFQ queue at index.
int NFQParseAndRegisterQueues(const char *queues)
Parses and adds Netfilter queue(s).
void NFQContextsClean(void)
Clean global contexts. Must be called on exit.
struct NFQGlobalVars_ NFQGlobalVars
void NFQInitConfig(bool quiet)
To initialize the NFQ global configuration data.
struct NFQPacketVars_ NFQPacketVars
struct NFQQueueVars_::@133 verdict_cache
int NFQRegisterQueue(const uint16_t number)
Add a single Netfilter queue.