suricata
|
Go to the source code of this file.
Data Structures | |
struct | IPFWPacketVars_ |
struct | IPFWQueueVars_ |
Macros | |
#define | IPFW_MAX_QUEUE 16 |
Typedefs | |
typedef struct IPFWPacketVars_ | IPFWPacketVars |
typedef struct IPFWQueueVars_ | IPFWQueueVars |
Functions | |
void * | IPFWGetThread (int number) |
Get a pointer to the IPFW thread at index. | |
int | IPFWRegisterQueue (char *queue) |
Add an IPFW divert. | |
void | TmModuleReceiveIPFWRegister (void) |
Registration Function for RecieveIPFW. | |
void | TmModuleVerdictIPFWRegister (void) |
Registration Function for VerdictIPFW. | |
void | TmModuleDecodeIPFWRegister (void) |
Registration Function for DecodeIPFW. | |
Definition in file source-ipfw.h.
#define IPFW_MAX_QUEUE 16 |
Definition at line 28 of file source-ipfw.h.
typedef struct IPFWPacketVars_ IPFWPacketVars |
typedef struct IPFWQueueVars_ IPFWQueueVars |
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 764 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 700 of file source-ipfw.c.
References IPFWThreadVars_::ipfw_index, IPFW_MAX_QUEUE, LiveRegisterDeviceName(), IPFWQueueVars_::port_num, SCLogDebug, SCLogError, SCMutexLock, SCMutexUnlock, and StringParseUint16().
Referenced by SCParseCommandLine().
void TmModuleDecodeIPFWRegister | ( | void | ) |
Registration Function for DecodeIPFW.
Definition at line 188 of file source-ipfw.c.
References TmModule_::flags, TmModule_::Func, TmModule_::name, TmModule_::ThreadDeinit, TmModule_::ThreadExitPrintStats, TmModule_::ThreadInit, TM_FLAG_DECODE_TM, TMM_DECODEIPFW, and tmm_modules.
Referenced by RegisterAllModules().
void TmModuleReceiveIPFWRegister | ( | void | ) |
Registration Function for RecieveIPFW.
Definition at line 151 of file source-ipfw.c.
References TmModule_::cap_flags, TmModule_::flags, TmModule_::Func, TmModule_::name, TmModule_::PktAcqBreakLoop, TmModule_::PktAcqLoop, SC_CAP_NET_ADMIN, SC_CAP_NET_BIND_SERVICE, SC_CAP_NET_BROADCAST, SC_CAP_NET_RAW, SCMutexInit, TmModule_::ThreadDeinit, TmModule_::ThreadExitPrintStats, TmModule_::ThreadInit, TM_FLAG_RECEIVE_TM, tmm_modules, and TMM_RECEIVEIPFW.
Referenced by RegisterAllModules().
void TmModuleVerdictIPFWRegister | ( | void | ) |
Registration Function for VerdictIPFW.
Definition at line 172 of file source-ipfw.c.
References TmModule_::cap_flags, TmModule_::flags, TmModule_::Func, TmModule_::name, SC_CAP_NET_ADMIN, SC_CAP_NET_BIND_SERVICE, SC_CAP_NET_RAW, TmModule_::ThreadDeinit, TmModule_::ThreadExitPrintStats, TmModule_::ThreadInit, TM_FLAG_VERDICT_TM, tmm_modules, and TMM_VERDICTIPFW.
Referenced by RegisterAllModules().