suricata
|
Go to the source code of this file.
Macros | |
#define | CASE_CODE(E) case E: return #E |
Functions | |
void | TmModuleDebugList (void) |
TmModule * | TmModuleGetByName (const char *name) |
get a tm module ptr by name More... | |
TmModule * | TmModuleGetById (int id) |
Returns a TM Module by its id. More... | |
int | TmModuleGetIDForTM (TmModule *tm) |
Given a TM Module, returns its id. More... | |
void | TmModuleRunInit (void) |
void | TmModuleRunDeInit (void) |
void | TmModuleRegisterTests (void) |
register all unittests for the tm modules More... | |
const char * | TmModuleTmmIdToString (TmmId id) |
Maps the TmmId, to its string equivalent. More... | |
Variables | |
TmModule | tmm_modules [TMM_SIZE] |
Thread Module functions
Definition in file tm-modules.c.
#define CASE_CODE | ( | E | ) | case E: return #E |
Definition at line 162 of file tm-modules.c.
void TmModuleDebugList | ( | void | ) |
Definition at line 31 of file tm-modules.c.
References TmModule_::Func, TmModule_::name, SCLogDebug, tmm_modules, and TMM_SIZE.
Referenced by RegisterAllModules().
TmModule* TmModuleGetById | ( | int | id | ) |
Returns a TM Module by its id.
id | Id of the TM Module to return. |
Pointer | of the module to be returned if available; NULL if unavailable. |
Definition at line 69 of file tm-modules.c.
References SCLogError, tmm_modules, and TMM_SIZE.
Referenced by TmThreadDisableReceiveThreads().
TmModule* TmModuleGetByName | ( | const char * | name | ) |
get a tm module ptr by name
name | name string |
ptr | to the module or NULL |
Definition at line 46 of file tm-modules.c.
References TmModule_::name, tmm_modules, and TMM_SIZE.
Referenced by RunModeErfFileAutoFp(), RunModeErfFileSingle(), RunModeFilePcapAutoFp(), RunModeFilePcapSingle(), RunModeSetIPSAutoFp(), RunModeSetIPSWorker(), RunModeSetLiveCaptureAutoFp(), TmThreadCreateCmdThreadByName(), and TmThreadCreateMgmtThreadByName().
int TmModuleGetIDForTM | ( | TmModule * | tm | ) |
Given a TM Module, returns its id.
tm | Pointer to the TM Module. |
id | of the TM Module if available; -1 if unavailable. |
Definition at line 88 of file tm-modules.c.
References TmModule_::name, tmm_modules, and TMM_SIZE.
Referenced by TmSlotSetFuncAppend().
void TmModuleRegisterTests | ( | void | ) |
register all unittests for the tm modules
Definition at line 135 of file tm-modules.c.
References coverage_unittests, g_ut_covered, g_ut_modules, TmModule_::name, TmModule_::RegisterTests, SCLogWarning, tmm_modules, and TMM_SIZE.
void TmModuleRunDeInit | ( | void | ) |
Definition at line 119 of file tm-modules.c.
References TmModule_::DeInit, TmModule_::name, tmm_modules, and TMM_SIZE.
Referenced by GlobalsDestroy().
void TmModuleRunInit | ( | void | ) |
Definition at line 104 of file tm-modules.c.
References TmModule_::Init, TmModule_::name, tmm_modules, and TMM_SIZE.
const char* TmModuleTmmIdToString | ( | TmmId | id | ) |
Maps the TmmId, to its string equivalent.
id | tmm id |
string | equivalent for the tmm id |
Definition at line 170 of file tm-modules.c.
References CASE_CODE, TMM_ALERTPCAPINFO, TMM_BYPASSEDFLOWMANAGER, TMM_DECODEAFP, TMM_DECODEAFXDP, TMM_DECODEDPDK, TMM_DECODEERFDAG, TMM_DECODEERFFILE, TMM_DECODEIPFW, TMM_DECODENETMAP, TMM_DECODENFLOG, TMM_DECODENFQ, TMM_DECODEPCAP, TMM_DECODEPCAPFILE, TMM_DECODEPLUGIN, TMM_DECODEWINDIVERT, TMM_DETECTLOADER, TMM_FLOWMANAGER, TMM_FLOWRECYCLER, TMM_FLOWWORKER, TMM_RECEIVEAFP, TMM_RECEIVEAFXDP, TMM_RECEIVEDPDK, TMM_RECEIVEERFDAG, TMM_RECEIVEERFFILE, TMM_RECEIVEIPFW, TMM_RECEIVENETMAP, TMM_RECEIVENFLOG, TMM_RECEIVENFQ, TMM_RECEIVEPCAP, TMM_RECEIVEPCAPFILE, TMM_RECEIVEPLUGIN, TMM_RECEIVEWINDIVERT, TMM_RESPONDREJECT, TMM_SIZE, TMM_STATSLOGGER, TMM_UNIXMANAGER, TMM_VERDICTIPFW, TMM_VERDICTNFQ, and TMM_VERDICTWINDIVERT.
Definition at line 29 of file tm-modules.c.
Referenced by InitGlobal(), TmModuleBypassedFlowManagerRegister(), TmModuleDebugList(), TmModuleDecodeAFPRegister(), TmModuleDecodeAFXDPRegister(), TmModuleDecodeCiCaptureRegister(), TmModuleDecodeDPDKRegister(), TmModuleDecodeErfDagRegister(), TmModuleDecodeErfFileRegister(), TmModuleDecodeIPFWRegister(), TmModuleDecodeNetmapRegister(), TmModuleDecodeNFLOGRegister(), TmModuleDecodeNFQRegister(), TmModuleDecodePcapFileRegister(), TmModuleDecodePcapRegister(), TmModuleDecodeWinDivertRegister(), TmModuleDetectLoaderRegister(), TmModuleFlowManagerRegister(), TmModuleFlowRecyclerRegister(), TmModuleFlowWorkerRegister(), TmModuleGetById(), TmModuleGetByName(), TmModuleGetIDForTM(), TmModuleReceiveAFPRegister(), TmModuleReceiveAFXDPRegister(), TmModuleReceiveCiCaptureRegister(), TmModuleReceiveDPDKRegister(), TmModuleReceiveErfDagRegister(), TmModuleReceiveErfFileRegister(), TmModuleReceiveNetmapRegister(), TmModuleReceiveNFLOGRegister(), TmModuleReceivePcapFileRegister(), TmModuleReceivePcapRegister(), TmModuleReceiveWinDivertRegister(), TmModuleRegisterTests(), TmModuleRespondRejectRegister(), TmModuleRunDeInit(), TmModuleRunInit(), TmModuleStatsLoggerRegister(), TmModuleUnixManagerRegister(), TmModuleVerdictIPFWRegister(), TmModuleVerdictNFQRegister(), and TmModuleVerdictWinDivertRegister().