|
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. More... | |
| int | IPFWRegisterQueue (char *queue) |
| Add an IPFW divert. More... | |
| void | IPFWInitConfig (void) |
| Read the ipfw settings from the configuration. More... | |
| void | TmModuleReceiveIPFWRegister (void) |
| Registration Function for RecieveIPFW. More... | |
| void | TmModuleVerdictIPFWRegister (void) |
| Registration Function for VerdictIPFW. More... | |
| void | TmModuleDecodeIPFWRegister (void) |
| Registration Function for DecodeIPFW. More... | |
Definition in file source-ipfw.h.
| #define IPFW_MAX_QUEUE 16 |
Definition at line 29 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 961 of file source-ipfw.c.
Referenced by RunModeIpsIPFWAutoFp(), and RunModeIpsIPFWWorker().

| void IPFWInitConfig | ( | void | ) |
Read the ipfw settings from the configuration.
IPFWRegisterQueue() runs while the command line is parsed, before suricata.yaml is loaded, so the ipfw section is read here instead. The runmodes call it before they start the receive threads. Reading it once also reports an invalid value once, not once per divert port.
Definition at line 930 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 884 of file source-ipfw.c.
References SCLogError, SCMutexLock, and StringParseUint16().

| void TmModuleDecodeIPFWRegister | ( | void | ) |
Registration Function for DecodeIPFW.
Definition at line 207 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 167 of file source-ipfw.c.
References SCMutexInit.
Referenced by RegisterAllModules().

| void TmModuleVerdictIPFWRegister | ( | void | ) |
Registration Function for VerdictIPFW.
Definition at line 191 of file source-ipfw.c.
References TmModule_::name, TmModule_::ThreadInit, tmm_modules, and TMM_VERDICTIPFW.
Referenced by RegisterAllModules().
