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 feature_flags
 

Detailed Description

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

Field Documentation

◆ AddPattern

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 164 of file util-mpm.h.

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

◆ AddPatternNocase

int(* MpmTableElmt_::AddPatternNocase) (struct MpmCtx_ *, uint8_t *, uint16_t, uint16_t, uint16_t, uint32_t, SigIntId, uint8_t)

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

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

◆ DestroyCtx

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

◆ DestroyThreadCtx

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

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

Referenced by MpmDestroyThreadCtx().

◆ feature_flags

uint8_t MpmTableElmt_::feature_flags

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

◆ InitCtx

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

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

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

◆ InitThreadCtx

void(* MpmTableElmt_::InitThreadCtx) (struct MpmCtx_ *, struct MpmThreadCtx_ *)

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

Referenced by MpmInitThreadCtx().

◆ name

const char* MpmTableElmt_::name

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

Referenced by MpmACRegister(), and MpmACTileRegister().

◆ Prepare

◆ PrintCtx

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

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

Referenced by MpmACRegister(), and MpmACTileRegister().

◆ PrintThreadCtx

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

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

◆ RegisterUnittests

void(* MpmTableElmt_::RegisterUnittests) (void)

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

Referenced by MpmACRegister(), and MpmACTileRegister().

◆ Search

uint32_t(* MpmTableElmt_::Search) (const struct MpmCtx_ *, struct MpmThreadCtx_ *, PrefilterRuleStore *, const uint8_t *, uint32_t)
Return values
cntnumber of patterns that matches: once per pattern max.

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

Referenced by MpmACRegister(), and MpmACTileRegister().


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