|
suricata
|
#include "threads.h"#include <linux/netfilter.h>#include <libnetfilter_queue/libnetfilter_queue.h>

Go to the source code of this file.
Data Structures | |
| struct | NFQPacketVars_ |
| struct | NFQQueueVars_ |
| struct | NFQGlobalVars_ |
Macros | |
| #define | NFQ_MAX_QUEUE 65535 |
Typedefs | |
| typedef struct NFQPacketVars_ | NFQPacketVars |
| typedef struct NFQQueueVars_ | NFQQueueVars |
| typedef struct NFQGlobalVars_ | NFQGlobalVars |
Functions | |
| void | NFQInitConfig (bool quiet) |
| To initialize the NFQ global configuration data. More... | |
| int | NFQRegisterQueue (const uint16_t number) |
| Add a single Netfilter queue. More... | |
| int | NFQParseAndRegisterQueues (const char *queues) |
| Parses and adds Netfilter queue(s). More... | |
| void * | NFQGetQueue (int number) |
| Get a pointer to the NFQ queue at index. More... | |
| void * | NFQGetThread (int number) |
| Get a pointer to the NFQ thread at index. More... | |
| void | NFQContextsClean (void) |
| Clean global contexts. Must be called on exit. More... | |
Definition in file source-nfq.h.
| #define NFQ_MAX_QUEUE 65535 |
Definition at line 35 of file source-nfq.h.
| typedef struct NFQGlobalVars_ NFQGlobalVars |
| typedef struct NFQPacketVars_ NFQPacketVars |
| typedef struct NFQQueueVars_ NFQQueueVars |
| void NFQContextsClean | ( | void | ) |
Clean global contexts. Must be called on exit.
Definition at line 1303 of file source-nfq.c.
Referenced by GlobalsDestroy().

| void* NFQGetQueue | ( | int | number | ) |
Get a pointer to the NFQ queue at index.
| number | idx of the queue in our array |
| ptr | pointer to the NFQThreadVars at index |
| NULL | on error |
Definition at line 946 of file source-nfq.c.
References unlikely.
| void* NFQGetThread | ( | int | number | ) |
Get a pointer to the NFQ thread at index.
This function is temporary used as configuration parser.
| number | idx of the queue in our array |
| ptr | pointer to the NFQThreadVars at index |
| NULL | on error |
Definition at line 964 of file source-nfq.c.
References unlikely.
Referenced by RunModeIpsNFQAutoFp(), and RunModeIpsNFQWorker().

| void NFQInitConfig | ( | bool | quiet | ) |
To initialize the NFQ global configuration data.
| quiet | It tells the mode of operation, if it is TRUE nothing will be get printed. |
Definition at line 208 of file source-nfq.c.
References NFQCnf_::batchcount, NFQCnf_::bypass_mark, NFQCnf_::bypass_mask, 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, SCConfGet(), SCConfGetBool(), SCConfGetInt(), SCLogDebug, SCLogError, SCLogInfo, and SCLogWarning.

| int NFQParseAndRegisterQueues | ( | const char * | queues | ) |
Parses and adds Netfilter queue(s).
| string | with the queue number or range |
| 0 | on success. |
| -1 | on failure. |
Definition at line 881 of file source-nfq.c.
References SCLogError, and SCRealloc.
| int NFQRegisterQueue | ( | const uint16_t | number | ) |
Add a single Netfilter queue.
| string | with the queue number |
| 0 | on success. |
| -1 | on failure. |
Definition at line 825 of file source-nfq.c.
References UtilCpuGetNumProcessorsOnline().
