Go to the documentation of this file.
33 static int DagConfigGetThreadCount(
void *conf)
38 static void *ParseDagConfig(
const char *iface)
51 "Multi threaded DAG mode. Packets from "
52 "each flow are assigned to a single detect "
53 "thread, unlike \"dag_auto\" where packets "
54 "from the same flow can be processed by any "
62 "Workers DAG mode, each thread does all "
63 " tasks from acquisition to logging",
76 DagConfigGetThreadCount,
82 FatalError(
"DAG single runmode failed to start");
85 SCLogInfo(
"RunModeIdsDagSingle initialised");
101 FatalError(
"DAG autofp runmode failed to start");
104 SCLogInfo(
"RunModeIdsDagAutoFp initialised");
120 FatalError(
"DAG workers runmode failed to start");
123 SCLogInfo(
"RunModeIdsErfDagWorkers initialised");
const char * thread_name_workers
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 RunModeIdsErfDagSingle(void)
const char * thread_name_autofp
const char * thread_name_single
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 RunModeIdsErfDagWorkers(void)
void RunModeRegisterNewRunMode(enum RunModes runmode, const char *name, const char *description, int(*RunModeFunc)(void), int(*RunModeIsIPSEnabled)(void))
Registers a new runmode.
const char * RunModeErfDagGetDefaultMode(void)
void RunModeErfDagRegister(void)
#define SCLogInfo(...)
Macro used to log INFORMATIONAL messages.
void TimeModeSetLive(void)
int RunModeIdsErfDagAutoFp(void)
int RunModeSetLiveCaptureSingle(ConfigIfaceParserFunc ConfigParser, ConfigIfaceThreadsCountFunc ModThreadsCount, const char *recv_mod_name, const char *decode_mod_name, const char *thread_name, const char *live_dev)