suricata
util-mpm-ac-bs.h File Reference
#include "util-mpm.h"
Include dependency graph for util-mpm-ac-bs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SCACBSPatternList_
 
struct  SCACBSOutputTable_
 
struct  SCACBSCtx_
 
struct  SCACBSThreadCtx_
 

Macros

#define SC_AC_BS_STATE_TYPE_U16   uint16_t
 
#define SC_AC_BS_STATE_TYPE_U32   uint32_t
 

Typedefs

typedef struct SCACBSPatternList_ SCACBSPatternList
 
typedef struct SCACBSOutputTable_ SCACBSOutputTable
 
typedef struct SCACBSCtx_ SCACBSCtx
 
typedef struct SCACBSThreadCtx_ SCACBSThreadCtx
 

Functions

void MpmACBSRegister (void)
 Register the aho-corasick mpm. More...
 

Detailed Description

Macro Definition Documentation

#define SC_AC_BS_STATE_TYPE_U16   uint16_t

Definition at line 27 of file util-mpm-ac-bs.h.

Referenced by MpmACBSRegister(), SCACBSDestroyCtx(), and SCACBSSearch().

#define SC_AC_BS_STATE_TYPE_U32   uint32_t

Definition at line 28 of file util-mpm-ac-bs.h.

Referenced by MpmACBSRegister(), SCACBSDestroyCtx(), and SCACBSSearch().

Typedef Documentation

typedef struct SCACBSCtx_ SCACBSCtx

Function Documentation

void MpmACBSRegister ( void  )

Register the aho-corasick mpm.

Definition at line 95 of file util-mpm-ac-bs.c.

References MpmTableElmt_::AddPattern, MpmTableElmt_::AddPatternNocase, StateQueue_::bot, MpmPattern_::ci, SCACBSPatternList_::cs, MpmCtx_::ctx, MpmTableElmt_::DestroyCtx, MpmTableElmt_::DestroyThreadCtx, SCACBSCtx_::failure_table, SCACBSCtx_::goto_table, MpmPattern_::id, MpmTableElmt_::InitCtx, MpmTableElmt_::InitThreadCtx, MpmPattern_::len, MpmCtx_::memory_cnt, MpmCtx_::memory_size, MPM_AC_BS, mpm_table, MpmTableElmt_::name, SCACBSOutputTable_::no_of_entries, SCACBSCtx_::output_table, SCACBSCtx_::parray, MpmCtx_::pattern_cnt, SCACBSCtx_::pid_pat_list, SCACBSOutputTable_::pids, MpmTableElmt_::Prepare, MpmTableElmt_::PrintCtx, MpmTableElmt_::PrintThreadCtx, MpmTableElmt_::RegisterUnittests, SC_AC_BS_FAIL, SC_AC_BS_STATE_TYPE_U16, SC_AC_BS_STATE_TYPE_U32, SC_ERR_AHO_CORASICK, SC_ERR_MEM_ALLOC, SCACBSAddPatternCI(), SCACBSAddPatternCS(), SCACBSDestroyCtx(), SCACBSDestroyThreadCtx(), SCACBSInitCtx(), SCACBSInitThreadCtx(), SCACBSPreparePatterns(), SCACBSPrintInfo(), SCACBSPrintSearchStats(), SCACBSRegisterTests(), SCACBSSearch(), SCFree, SCLogCritical, SCLogError, SCMalloc, SCRealloc, MpmTableElmt_::Search, SCACBSCtx_::single_state_size, SCACBSCtx_::state_count, STATE_QUEUE_CONTAINER_SIZE, SCACBSCtx_::state_table_mod, SCACBSCtx_::state_table_mod_pointers, SCACBSCtx_::state_table_u16, SCACBSCtx_::state_table_u32, StateQueue_::store, and StateQueue_::top.

Referenced by MpmTableSetup().

Here is the call graph for this function:

Here is the caller graph for this function: