Go to the documentation of this file.
30 static int RunModeSingle(
void)
37 thread_name,
"packetpool",
"packetpool",
"packetpool",
"packetpool",
"pktacqloop");
39 SCLogError(
"TmThreadCreatePacketHandler failed");
44 if (tm_module == NULL) {
45 FatalError(
"TmModuleGetByName failed for ReceiveCiCapture");
50 if (tm_module == NULL) {
51 FatalError(
"TmModuleGetByName DecodeCiCapture failed");
56 if (tm_module == NULL) {
57 FatalError(
"TmModuleGetByName for FlowWorker failed");
TmEcode TmThreadSpawn(ThreadVars *tv)
Spawns a thread associated with the ThreadVars instance tv.
ThreadVars * TmThreadCreatePacketHandler(const char *name, const char *inq_name, const char *inqh_name, const char *outq_name, const char *outqh_name, const char *slots)
Creates and returns a TV instance for a Packet Processing Thread. This function doesn't support custo...
const char * thread_name_single
#define TM_THREAD_NAME_MAX
TmModule * TmModuleGetByName(const char *name)
get a tm module ptr by name
void CiCaptureIdsRegister(int slot)
void RunModeRegisterNewRunMode(enum RunModes runmode, const char *name, const char *description, int(*RunModeFunc)(void), int(*RunModeIsIPSEnabled)(void))
Registers a new runmode.
Per thread variable structure.
const char * CiCaptureIdsGetDefaultRunMode(void)
void TmSlotSetFuncAppend(ThreadVars *tv, TmModule *tm, const void *data)
Appends a new entry to the slots.
TmEcode TmThreadSetCPU(ThreadVars *tv, uint8_t type)
#define SCLogError(...)
Macro used to log ERROR messages.
#define SCLogNotice(...)
Macro used to log NOTICE messages.