suricata
util-runmodes.c File Reference
#include "suricata-common.h"
#include "config.h"
#include "tm-threads.h"
#include "conf.h"
#include "runmodes.h"
#include "runmode-af-packet.h"
#include "log-httplog.h"
#include "output.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "alert-fastlog.h"
#include "alert-prelude.h"
#include "alert-unified2-alert.h"
#include "alert-debuglog.h"
#include "util-debug.h"
#include "util-time.h"
#include "util-cpu.h"
#include "util-affinity.h"
#include "util-device.h"
#include "util-runmodes.h"
#include "flow-hash.h"
Include dependency graph for util-runmodes.c:

Go to the source code of this file.

Functions

char * RunmodeAutoFpCreatePickupQueuesString (int n)
 create a queue string for autofp to pass to the flow queue handler. More...
 
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 RunModeSetLiveCaptureWorkers (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 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)
 

Detailed Description

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

Helper function for runmode.

Definition in file util-runmodes.c.

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 59 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 
)

◆ 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 405 of file util-runmodes.c.

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

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 370 of file util-runmodes.c.

References LiveGetDeviceCount(), LiveGetDeviceName(), SC_ERR_MEM_ALLOC, SCLogError, 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: