#include "threads.h"
#include <linux/netfilter.h>
#include <libnetfilter_queue/libnetfilter_queue.h>
Go to the source code of this file.
◆ NFQ_MAX_QUEUE
#define NFQ_MAX_QUEUE 65535 |
◆ NFQGlobalVars
◆ NFQPacketVars
◆ NFQQueueVars
◆ NFQContextsClean()
void NFQContextsClean |
( |
void |
| ) |
|
Clean global contexts. Must be called on exit.
Definition at line 1271 of file source-nfq.c.
◆ NFQGetQueue()
void* NFQGetQueue |
( |
int |
number | ) |
|
Get a pointer to the NFQ queue at index.
- Parameters
-
number | idx of the queue in our array |
- Return values
-
ptr | pointer to the NFQThreadVars at index |
NULL | on error |
Definition at line 922 of file source-nfq.c.
References unlikely.
◆ NFQGetThread()
void* NFQGetThread |
( |
int |
number | ) |
|
Get a pointer to the NFQ thread at index.
This function is temporary used as configuration parser.
- Parameters
-
number | idx of the queue in our array |
- Return values
-
ptr | pointer to the NFQThreadVars at index |
NULL | on error |
Definition at line 940 of file source-nfq.c.
References unlikely.
Referenced by RunModeIpsNFQAutoFp(), and RunModeIpsNFQWorker().
◆ NFQInitConfig()
void NFQInitConfig |
( |
bool |
quiet | ) |
|
To initialize the NFQ global configuration data.
- Parameters
-
quiet | It tells the mode of operation, if it is TRUE nothing will be get printed. |
Definition at line 206 of file source-nfq.c.
References NFQCnf_::batchcount, NFQCnf_::bypass_mark, NFQCnf_::bypass_mask, ConfGet(), ConfGetBool(), ConfGetInt(), FatalError, NFQCnf_::flags, NFQCnf_::mark, NFQCnf_::mask, NFQCnf_::mode, NFQCnf_::next_queue, NFQ_ACCEPT_MODE, nfq_config, NFQ_FLAG_FAIL_OPEN, NFQ_REPEAT_MODE, NFQ_ROUTE_MODE, SCLogDebug, SCLogError, SCLogInfo, and SCLogWarning.
◆ NFQParseAndRegisterQueues()
int NFQParseAndRegisterQueues |
( |
const char * |
queues | ) |
|
Parses and adds Netfilter queue(s).
- Parameters
-
string | with the queue number or range |
- Return values
-
0 | on success. |
-1 | on failure. |
Definition at line 857 of file source-nfq.c.
References SCLogError, and SCRealloc.
◆ NFQRegisterQueue()
int NFQRegisterQueue |
( |
const uint16_t |
number | ) |
|