Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

mpse.c File Reference

#include "bitop.h"
#include "mwm.h"
#include "acsmx.h"
#include "acsmx2.h"
#include "sfksearch.h"
#include "mpse.h"

Go to the source code of this file.

Typedefs

typedef _mpse_struct MPSE

Functions

void * mpseNew (int method)
void mpseFree (void *pv)
int mpseAddPattern (void *pv, void *P, int m, unsigned noCase, unsigned offset, unsigned depth, void *ID, int IID)
void mpseLargeShifts (void *pv, int flag)
int mpsePrepPatterns (void *pv)
void mpseSetRuleMask (void *pv, BITOP *rm)
int mpsePrintDetail (void *pv)
int mpsePrintSummary ()
int mpseSearch (void *pv, unsigned char *T, int n, int(*action)(void *id, int index, void *data), void *data)
UINT64 mpseGetPatByteCount ()
void mpseResetByteCount ()

Variables

static UINT64 s_bcnt = 0


Typedef Documentation

typedef struct _mpse_struct MPSE
 


Function Documentation

int mpseAddPattern void *  pv,
void *  P,
int  m,
unsigned  noCase,
unsigned  offset,
unsigned  depth,
void *  ID,
int  IID
 

Definition at line 137 of file mpse.c.

References acsmAddPattern(), acsmAddPattern2(), KTrieAddPattern(), _mpse_struct::method, MPSE_AC, MPSE_ACB, MPSE_ACF, MPSE_ACS, MPSE_ACSB, MPSE_KTBM, MPSE_LOWMEM, MPSE_MWM, mwmAddPatternEx(), and _mpse_struct::obj.

Referenced by BuildMultiPatGroup(), BuildMultiPatGroupsUri(), and SearchAdd().

void mpseFree void *  pv  ) 
 

Definition at line 103 of file mpse.c.

References acsmFree(), acsmFree2(), _mpse_struct::method, MPSE_AC, MPSE_ACB, MPSE_ACF, MPSE_ACS, MPSE_ACSB, MPSE_AUTO, MPSE_KTBM, MPSE_LOWMEM, MPSE_MWM, mwmFree(), and _mpse_struct::obj.

Referenced by SearchFree().

UINT64 mpseGetPatByteCount  ) 
 

Definition at line 308 of file mpse.c.

References s_bcnt.

Referenced by CalculateBasePerfStats().

void mpseLargeShifts void *  pv,
int  flag
 

Definition at line 170 of file mpse.c.

References _mpse_struct::method, MPSE_AUTO, MPSE_MWM, mwmLargeShifts(), and _mpse_struct::obj.

Referenced by BuildMultiPatGroupsUri().

void* mpseNew int  method  ) 
 

Definition at line 48 of file mpse.c.

References ACF_BANDED, ACF_FULL, ACF_SPARSE, ACF_SPARSEBANDS, acsmNew(), acsmNew2(), acsmSelectFormat2(), KTrieNew(), _mpse_struct::method, MPSE_AC, MPSE_ACB, MPSE_ACF, MPSE_ACS, MPSE_ACSB, MPSE_AUTO, MPSE_KTBM, MPSE_LOWMEM, MPSE_MWM, mwmNew(), NULL, _mpse_struct::obj, and s_bcnt.

Referenced by BuildMultiPatGroup(), BuildMultiPatGroupsUri(), and SearchInit().

int mpsePrepPatterns void *  pv  ) 
 

Definition at line 187 of file mpse.c.

References acsmCompile(), acsmCompile2(), KTrieCompile(), _mpse_struct::method, MPSE_AC, MPSE_ACB, MPSE_ACF, MPSE_ACS, MPSE_ACSB, MPSE_AUTO, MPSE_KTBM, MPSE_LOWMEM, MPSE_MWM, mwmPrepPatterns(), and _mpse_struct::obj.

Referenced by BuildMultiPatGroup(), BuildMultiPatGroupsUri(), and SearchPrepPatterns().

int mpsePrintDetail void *  pv  ) 
 

Definition at line 235 of file mpse.c.

References acsmPrintDetailInfo(), acsmPrintDetailInfo2(), _mpse_struct::method, MPSE_AC, MPSE_ACB, MPSE_ACF, MPSE_ACS, MPSE_ACSB, MPSE_AUTO, MPSE_LOWMEM, MPSE_MWM, and _mpse_struct::obj.

int mpsePrintSummary  ) 
 

Definition at line 267 of file mpse.c.

References acsmPrintSummaryInfo(), and acsmPrintSummaryInfo2().

Referenced by SnortMain().

void mpseResetByteCount  ) 
 

Definition at line 313 of file mpse.c.

References s_bcnt.

Referenced by CalculateBasePerfStats().

int mpseSearch void *  pv,
unsigned char *  T,
int  n,
int(*)(void *id, int index, void *data)  action,
void *  data
 

Definition at line 274 of file mpse.c.

References acsmSearch(), acsmSearch2(), KTrieSearch(), _mpse_struct::method, MPSE_AC, MPSE_ACB, MPSE_ACF, MPSE_ACS, MPSE_ACSB, MPSE_AUTO, MPSE_LOWMEM, MPSE_MWM, mwmSearch(), _mpse_struct::obj, and s_bcnt.

Referenced by fpEvalHeaderSW(), and SearchFindString().

void mpseSetRuleMask void *  pv,
BITOP rm
 

Definition at line 217 of file mpse.c.

References _mpse_struct::method, MPSE_AUTO, MPSE_MWM, mwmSetRuleMask(), and _mpse_struct::obj.

Referenced by fpEvalHeaderSW().


Variable Documentation

UINT64 s_bcnt = 0 [static]
 

Definition at line 39 of file mpse.c.

Referenced by mpseGetPatByteCount(), mpseNew(), mpseResetByteCount(), and mpseSearch().


Generated on Sun May 14 14:51:26 2006 by  doxygen 1.4.2