Go to the documentation of this file.
32 static uint16_t DagConfigGetThreadCount(
void *conf)
37 static void *ParseDagConfig(
const char *iface)
50 "Multi threaded DAG mode. Packets from "
51 "each flow are assigned to a single detect "
52 "thread, unlike \"dag_auto\" where packets "
53 "from the same flow can be processed by any "
61 "Workers DAG mode, each thread does all "
62 " tasks from acquisition to logging",
75 DagConfigGetThreadCount,
81 FatalError(
"DAG single runmode failed to start");
84 SCLogInfo(
"RunModeIdsDagSingle initialised");
100 FatalError(
"DAG autofp runmode failed to start");
103 SCLogInfo(
"RunModeIdsDagAutoFp initialised");
119 FatalError(
"DAG workers runmode failed to start");
122 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)
const char * RunModeErfDagGetDefaultMode(void)
void RunModeRegisterNewRunMode(enum SCRunModes runmode, const char *name, const char *description, int(*RunModeFunc)(void), int(*RunModeIsIPSEnabled)(void))
Registers a new runmode.
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)