suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "decode.h"
#include "packet.h"
#include "packet-queue.h"
#include "threads.h"
#include "threadvars.h"
#include "tm-queuehandlers.h"
#include "tm-threads.h"
#include "source-ipfw.h"
#include "util-debug.h"
#include "conf.h"
#include "util-byte.h"
#include "util-privs.h"
#include "util-datalink.h"
#include "util-device.h"
#include "runmodes.h"
#include "action-globals.h"
Go to the source code of this file.
Data Structures | |
struct | IPFWThreadVars_ |
Structure to hold thread specific variables. More... | |
Macros | |
#define | IPFW_ACCEPT 0 |
#define | IPFW_DROP 1 |
#define | IPFW_SOCKET_POLL_MSEC 300 |
#define | IP_MAXPACKET 65535 |
Typedefs | |
typedef struct IPFWThreadVars_ | IPFWThreadVars |
Structure to hold thread specific variables. More... | |
Functions | |
void | TmModuleReceiveIPFWRegister (void) |
Registration Function for RecieveIPFW. More... | |
void | TmModuleVerdictIPFWRegister (void) |
Registration Function for VerdictIPFW. More... | |
void | TmModuleDecodeIPFWRegister (void) |
Registration Function for DecodeIPFW. More... | |
int | IPFWRegisterQueue (char *queue) |
Add an IPFW divert. More... | |
void * | IPFWGetThread (int number) |
Get a pointer to the IPFW thread at index. More... | |
Variables | |
uint32_t | max_pending_packets |
IPFW packet acquisition support
Definition in file source-ipfw.c.
#define IP_MAXPACKET 65535 |
Definition at line 224 of file source-ipfw.c.
#define IPFW_ACCEPT 0 |
Definition at line 97 of file source-ipfw.c.
#define IPFW_DROP 1 |
Definition at line 98 of file source-ipfw.c.
#define IPFW_SOCKET_POLL_MSEC 300 |
Definition at line 100 of file source-ipfw.c.
typedef struct IPFWThreadVars_ IPFWThreadVars |
Structure to hold thread specific variables.
void* IPFWGetThread | ( | int | number | ) |
Get a pointer to the IPFW thread at index.
This function is temporary used as configuration parser.
number | idx of the queue in our array |
ptr | pointer to the IPFWThreadVars at index |
NULL | on error |
Definition at line 762 of file source-ipfw.c.
Referenced by RunModeIpsIPFWAutoFp(), and RunModeIpsIPFWWorker().
int IPFWRegisterQueue | ( | char * | queue | ) |
Add an IPFW divert.
string | with the queue name |
0 | on success. |
-1 | on failure. |
Definition at line 698 of file source-ipfw.c.
References SCLogError, SCMutexLock, and StringParseUint16().
void TmModuleDecodeIPFWRegister | ( | void | ) |
Registration Function for DecodeIPFW.
Definition at line 186 of file source-ipfw.c.
References TmModule_::name, TmModule_::ThreadInit, TMM_DECODEIPFW, and tmm_modules.
Referenced by RegisterAllModules().
void TmModuleReceiveIPFWRegister | ( | void | ) |
Registration Function for RecieveIPFW.
Definition at line 150 of file source-ipfw.c.
References SCMutexInit.
Referenced by RegisterAllModules().
void TmModuleVerdictIPFWRegister | ( | void | ) |
Registration Function for VerdictIPFW.
Definition at line 171 of file source-ipfw.c.
References TmModule_::name, TmModule_::ThreadInit, tmm_modules, and TMM_VERDICTIPFW.
Referenced by RegisterAllModules().