suricata
|
#include <util-mpm.h>
Data Fields | |
const char * | name |
void(* | InitCtx )(struct MpmCtx_ *) |
void(* | InitThreadCtx )(struct MpmCtx_ *, struct MpmThreadCtx_ *) |
void(* | DestroyCtx )(struct MpmCtx_ *) |
void(* | DestroyThreadCtx )(struct MpmCtx_ *, struct MpmThreadCtx_ *) |
MpmConfig *(* | ConfigInit )(void) |
void(* | ConfigDeinit )(MpmConfig **) |
void(* | ConfigCacheDirSet )(MpmConfig *, const char *dir_path) |
int(* | AddPattern )(struct MpmCtx_ *, uint8_t *, uint16_t, uint16_t, uint16_t, uint32_t, SigIntId, uint8_t) |
int(* | AddPatternNocase )(struct MpmCtx_ *, uint8_t *, uint16_t, uint16_t, uint16_t, uint32_t, SigIntId, uint8_t) |
int(* | Prepare )(MpmConfig *, struct MpmCtx_ *) |
int(* | CacheRuleset )(MpmConfig *) |
uint32_t(* | Search )(const struct MpmCtx_ *, struct MpmThreadCtx_ *, PrefilterRuleStore *, const uint8_t *, uint32_t) |
void(* | PrintCtx )(struct MpmCtx_ *) |
void(* | PrintThreadCtx )(struct MpmThreadCtx_ *) |
void(* | RegisterUnittests )(void) |
uint8_t | feature_flags |
Definition at line 150 of file util-mpm.h.
int(* MpmTableElmt_::AddPattern) (struct MpmCtx_ *, uint8_t *, uint16_t, uint16_t, uint16_t, uint32_t, SigIntId, uint8_t) |
function pointers for adding patterns to the mpm ctx.
mpm_ctx | Mpm context to add the pattern to |
pattern | pointer to the pattern |
pattern_len | length of the pattern in bytes |
offset | pattern offset setting |
depth | pattern depth setting |
pid | pattern id |
sid | signature internal id |
flags | pattern flags |
Definition at line 172 of file util-mpm.h.
Referenced by MpmACRegister(), MpmACTileRegister(), and MpmAddPatternCS().
int(* MpmTableElmt_::AddPatternNocase) (struct MpmCtx_ *, uint8_t *, uint16_t, uint16_t, uint16_t, uint32_t, SigIntId, uint8_t) |
Definition at line 173 of file util-mpm.h.
Referenced by MpmACRegister(), MpmACTileRegister(), and MpmAddPatternCI().
int(* MpmTableElmt_::CacheRuleset) (MpmConfig *) |
Definition at line 175 of file util-mpm.h.
Referenced by MpmACRegister(), and MpmACTileRegister().
void(* MpmTableElmt_::ConfigCacheDirSet) (MpmConfig *, const char *dir_path) |
Definition at line 159 of file util-mpm.h.
Referenced by MpmACRegister(), and MpmACTileRegister().
void(* MpmTableElmt_::ConfigDeinit) (MpmConfig **) |
Definition at line 158 of file util-mpm.h.
Referenced by DetectEngineCtxFree(), MpmACRegister(), and MpmACTileRegister().
MpmConfig*(* MpmTableElmt_::ConfigInit) (void) |
Definition at line 157 of file util-mpm.h.
Referenced by MpmACRegister(), and MpmACTileRegister().
void(* MpmTableElmt_::DestroyCtx) (struct MpmCtx_ *) |
Definition at line 154 of file util-mpm.h.
Referenced by MpmACRegister(), MpmACTileRegister(), MpmFactoryDeRegisterAllMpmCtxProfiles(), MpmFactoryReClaimMpmCtx(), and PatternMatchDestroy().
void(* MpmTableElmt_::DestroyThreadCtx) (struct MpmCtx_ *, struct MpmThreadCtx_ *) |
Definition at line 155 of file util-mpm.h.
Referenced by MpmDestroyThreadCtx().
uint8_t MpmTableElmt_::feature_flags |
Definition at line 183 of file util-mpm.h.
void(* MpmTableElmt_::InitCtx) (struct MpmCtx_ *) |
Definition at line 152 of file util-mpm.h.
Referenced by MpmACRegister(), MpmACTileRegister(), and MpmInitCtx().
void(* MpmTableElmt_::InitThreadCtx) (struct MpmCtx_ *, struct MpmThreadCtx_ *) |
Definition at line 153 of file util-mpm.h.
Referenced by MpmInitThreadCtx().
const char* MpmTableElmt_::name |
Definition at line 151 of file util-mpm.h.
Referenced by MpmACRegister(), and MpmACTileRegister().
Definition at line 174 of file util-mpm.h.
Referenced by DetectMpmPrepareAppMpms(), DetectMpmPrepareBuiltinMpms(), DetectMpmPrepareFrameMpms(), DetectMpmPreparePktMpms(), MpmACRegister(), and MpmACTileRegister().
void(* MpmTableElmt_::PrintCtx) (struct MpmCtx_ *) |
Definition at line 178 of file util-mpm.h.
Referenced by MpmACRegister(), and MpmACTileRegister().
void(* MpmTableElmt_::PrintThreadCtx) (struct MpmThreadCtx_ *) |
Definition at line 179 of file util-mpm.h.
void(* MpmTableElmt_::RegisterUnittests) (void) |
Definition at line 181 of file util-mpm.h.
Referenced by MpmACRegister(), and MpmACTileRegister().
uint32_t(* MpmTableElmt_::Search) (const struct MpmCtx_ *, struct MpmThreadCtx_ *, PrefilterRuleStore *, const uint8_t *, uint32_t) |
cnt | number of patterns that matches: once per pattern max. |
Definition at line 177 of file util-mpm.h.
Referenced by MpmACRegister(), and MpmACTileRegister().