suricata
source-ipfw.h File Reference
This graph shows which files directly or indirectly include this file:

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 TmModuleReceiveIPFWRegister (void)
 Registration Function for RecieveIPFW. More...
 
void TmModuleVerdictIPFWRegister (void)
 Registration Function for VerdictIPFW. More...
 
void TmModuleDecodeIPFWRegister (void)
 Registration Function for DecodeIPFW. More...
 

Detailed Description

Macro Definition Documentation

◆ IPFW_MAX_QUEUE

#define IPFW_MAX_QUEUE   16

Definition at line 29 of file source-ipfw.h.

Typedef Documentation

◆ IPFWPacketVars

◆ IPFWQueueVars

typedef struct IPFWQueueVars_ IPFWQueueVars

Function Documentation

◆ IPFWGetThread()

void* IPFWGetThread ( int  number)

Get a pointer to the IPFW thread at index.

This function is temporary used as configuration parser.

Parameters
numberidx of the queue in our array
Return values
ptrpointer to the IPFWThreadVars at index
NULLon error

Definition at line 762 of file source-ipfw.c.

Referenced by RunModeIpsIPFWAutoFp(), and RunModeIpsIPFWWorker().

Here is the caller graph for this function:

◆ IPFWRegisterQueue()

int IPFWRegisterQueue ( char *  queue)

Add an IPFW divert.

Parameters
stringwith the queue name
Return values
0on success.
-1on failure.

Definition at line 698 of file source-ipfw.c.

References SCLogError, SCMutexLock, and StringParseUint16().

Here is the call graph for this function:

◆ TmModuleDecodeIPFWRegister()

void TmModuleDecodeIPFWRegister ( void  )

Registration Function for DecodeIPFW.

Todo:
Unit tests are needed for this module.

Definition at line 190 of file source-ipfw.c.

References TmModule_::name, TmModule_::ThreadInit, TMM_DECODEIPFW, and tmm_modules.

Referenced by RegisterAllModules().

Here is the caller graph for this function:

◆ TmModuleReceiveIPFWRegister()

void TmModuleReceiveIPFWRegister ( void  )

Registration Function for RecieveIPFW.

Todo:
Unit tests are needed for this module.
Todo:
untested

Definition at line 154 of file source-ipfw.c.

References SCMutexInit.

Referenced by RegisterAllModules().

Here is the caller graph for this function:

◆ TmModuleVerdictIPFWRegister()

void TmModuleVerdictIPFWRegister ( void  )

Registration Function for VerdictIPFW.

Todo:
Unit tests are needed for this module.
Todo:
untested

Definition at line 175 of file source-ipfw.c.

References TmModule_::name, TmModule_::ThreadInit, tmm_modules, and TMM_VERDICTIPFW.

Referenced by RegisterAllModules().

Here is the caller graph for this function: