suricata
|
Go to the source code of this file.
Data Structures | |
struct | TmModule_ |
struct | OutputCtx_ |
Macros | |
#define | TM_FLAG_RECEIVE_TM 0x01 |
#define | TM_FLAG_DECODE_TM 0x02 |
#define | TM_FLAG_STREAM_TM 0x04 |
#define | TM_FLAG_DETECT_TM 0x08 |
#define | TM_FLAG_MANAGEMENT_TM 0x10 |
#define | TM_FLAG_COMMAND_TM 0x20 |
Typedefs | |
typedef TmEcode(* | ThreadInitFunc) (ThreadVars *, const void *, void **) |
typedef TmEcode(* | ThreadDeinitFunc) (ThreadVars *, void *) |
typedef void(* | ThreadExitPrintStatsFunc) (ThreadVars *, void *) |
typedef struct TmModule_ | TmModule |
typedef struct OutputCtx_ | OutputCtx |
Functions | |
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... | |
TmEcode | TmModuleRegister (char *name, int(*module_func)(ThreadVars *, Packet *, void *)) |
void | TmModuleDebugList (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... | |
void | TmModuleRunInit (void) |
void | TmModuleRunDeInit (void) |
Variables | |
TmModule | tmm_modules [TMM_SIZE] |
Definition in file tm-modules.h.
#define TM_FLAG_COMMAND_TM 0x20 |
Definition at line 38 of file tm-modules.h.
#define TM_FLAG_DECODE_TM 0x02 |
Definition at line 34 of file tm-modules.h.
#define TM_FLAG_DETECT_TM 0x08 |
Definition at line 36 of file tm-modules.h.
#define TM_FLAG_MANAGEMENT_TM 0x10 |
Definition at line 37 of file tm-modules.h.
#define TM_FLAG_RECEIVE_TM 0x01 |
Definition at line 33 of file tm-modules.h.
#define TM_FLAG_STREAM_TM 0x04 |
Definition at line 35 of file tm-modules.h.
typedef struct OutputCtx_ OutputCtx |
Structure that output modules use to maintain private data.
typedef TmEcode(* ThreadDeinitFunc) (ThreadVars *, void *) |
Definition at line 40 of file tm-modules.h.
typedef void(* ThreadExitPrintStatsFunc) (ThreadVars *, void *) |
Definition at line 41 of file tm-modules.h.
typedef TmEcode(* ThreadInitFunc) (ThreadVars *, const void *, void **) |
Definition at line 39 of file tm-modules.h.
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().
TmEcode TmModuleRegister | ( | char * | name, |
int(*)(ThreadVars *, Packet *, void *) | module_func | ||
) |
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().