suricata
MpmTableElmt_ Struct Reference

#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_ *)
 
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 )(struct MpmCtx_ *)
 
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 flags
 

Detailed Description

Definition at line 137 of file util-mpm.h.

Field Documentation

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.

Parameters
mpm_ctxMpm context to add the pattern to
patternpointer to the pattern
pattern_lenlength of the pattern in bytes
offsetpattern offset setting
depthpattern depth setting
pidpattern id
sidsignature internal id
flagspattern flags

Definition at line 155 of file util-mpm.h.

Referenced by MpmACBSRegister(), 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 156 of file util-mpm.h.

Referenced by MpmACBSRegister(), MpmACRegister(), MpmACTileRegister(), and MpmAddPatternCI().

void(* MpmTableElmt_::DestroyThreadCtx) (struct MpmCtx_ *, struct MpmThreadCtx_ *)
uint8_t MpmTableElmt_::flags

Definition at line 162 of file util-mpm.h.

void(* MpmTableElmt_::InitCtx) (struct MpmCtx_ *)

Definition at line 139 of file util-mpm.h.

Referenced by MpmACBSRegister(), MpmACRegister(), MpmACTileRegister(), and MpmInitCtx().

void(* MpmTableElmt_::InitThreadCtx) (struct MpmCtx_ *, struct MpmThreadCtx_ *)
const char* MpmTableElmt_::name
int(* MpmTableElmt_::Prepare) (struct MpmCtx_ *)
void(* MpmTableElmt_::PrintCtx) (struct MpmCtx_ *)

Definition at line 159 of file util-mpm.h.

Referenced by MpmACBSRegister(), MpmACRegister(), and MpmACTileRegister().

void(* MpmTableElmt_::PrintThreadCtx) (struct MpmThreadCtx_ *)

Definition at line 160 of file util-mpm.h.

Referenced by MpmACBSRegister(), MpmACRegister(), and MpmACTileRegister().

void(* MpmTableElmt_::RegisterUnittests) (void)

Definition at line 161 of file util-mpm.h.

Referenced by MpmACBSRegister(), MpmACRegister(), MpmACTileRegister(), and MpmRegisterTests().

uint32_t(* MpmTableElmt_::Search) (const struct MpmCtx_ *, struct MpmThreadCtx_ *, PrefilterRuleStore *, const uint8_t *, uint32_t)

The documentation for this struct was generated from the following file: