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

Go to the source code of this file.

Typedefs

typedef void *(* ConfigIfaceParserFunc) (const char *)
 
typedef void *(* ConfigIPSParserFunc) (int)
 
typedef int(* ConfigIfaceThreadsCountFunc) (void *)
 

Functions

int RunModeSetLiveCaptureAuto (ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev)
 
int RunModeSetLiveCaptureAutoFp (ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev)
 
int RunModeSetLiveCaptureSingle (ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev)
 
int RunModeSetLiveCaptureWorkers (ConfigIfaceParserFunc configparser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev)
 
int RunModeSetIPSAutoFp (ConfigIPSParserFunc ConfigParser, const char *recv_mod_name, const char *verdict_mod_name, const char *decode_mod_name)
 
int RunModeSetIPSWorker (ConfigIPSParserFunc ConfigParser, const char *recv_mod_name, const char *verdict_mod_name, const char *decode_mod_name)
 
char * RunmodeAutoFpCreatePickupQueuesString (int n)
 create a queue string for autofp to pass to the flow queue handler. More...
 

Detailed Description

Author
Eric Leblond eric@.nosp@m.regi.nosp@m.t.org

Definition in file util-runmodes.h.

Typedef Documentation

◆ ConfigIfaceParserFunc

typedef void*(* ConfigIfaceParserFunc) (const char *)

Definition at line 26 of file util-runmodes.h.

◆ ConfigIfaceThreadsCountFunc

typedef int(* ConfigIfaceThreadsCountFunc) (void *)

Definition at line 28 of file util-runmodes.h.

◆ ConfigIPSParserFunc

typedef void*(* ConfigIPSParserFunc) (int)

Definition at line 27 of file util-runmodes.h.

Function Documentation

◆ RunmodeAutoFpCreatePickupQueuesString()

char* RunmodeAutoFpCreatePickupQueuesString ( int  n)

create a queue string for autofp to pass to the flow queue handler.

The string will be "pickup1,pickup2,pickup3\0"

Definition at line 58 of file util-runmodes.c.

References SC_ERR_MEM_ALLOC, SCLogDebug, SCLogError, SCMalloc, strlcat(), TM_QUEUE_NAME_MAX, and unlikely.

Referenced by RunModeErfFileAutoFp(), RunModeFilePcapAutoFp(), RunModeSetIPSAutoFp(), and RunModeSetLiveCaptureAutoFp().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RunModeSetIPSAutoFp()

◆ RunModeSetIPSWorker()

int RunModeSetIPSWorker ( ConfigIPSParserFunc  ConfigParser,
const char *  recv_mod_name,
const char *  verdict_mod_name,
const char *  decode_mod_name 
)

◆ RunModeSetLiveCaptureAuto()

int RunModeSetLiveCaptureAuto ( ConfigIfaceParserFunc  configparser,
ConfigIfaceThreadsCountFunc  ModThreadsCount,
const char *  recv_mod_name,
const char *  decode_mod_name,
const char *  thread_name,
const char *  live_dev 
)

◆ RunModeSetLiveCaptureAutoFp()

◆ RunModeSetLiveCaptureSingle()

int RunModeSetLiveCaptureSingle ( ConfigIfaceParserFunc  configparser,
ConfigIfaceThreadsCountFunc  ModThreadsCount,
const char *  recv_mod_name,
const char *  decode_mod_name,
const char *  thread_name,
const char *  live_dev 
)

Definition at line 375 of file util-runmodes.c.

References FatalError, LiveGetDeviceCount(), LiveGetDeviceName(), and SC_ERR_RUNMODE.

Referenced by RunModeIdsAFPSingle(), RunModeIdsErfDagSingle(), RunModeIdsNetmapSingle(), RunModeIdsNflogSingle(), and RunModeIdsPcapSingle().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RunModeSetLiveCaptureWorkers()

int RunModeSetLiveCaptureWorkers ( ConfigIfaceParserFunc  configparser,
ConfigIfaceThreadsCountFunc  ModThreadsCount,
const char *  recv_mod_name,
const char *  decode_mod_name,
const char *  thread_name,
const char *  live_dev 
)

Definition at line 341 of file util-runmodes.c.

References FatalError, LiveGetDeviceCount(), LiveGetDeviceName(), SC_ERR_MEM_ALLOC, and unlikely.

Referenced by RunModeIdsAFPWorkers(), RunModeIdsErfDagWorkers(), RunModeIdsNetmapWorkers(), RunModeIdsNflogWorkers(), and RunModeIdsPcapWorkers().

Here is the call graph for this function:
Here is the caller graph for this function: