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

mpse.h File Reference

#include "bitop.h"

Go to the source code of this file.

Defines

#define UINT64   unsigned long long
#define MPSE_MWM   1
#define MPSE_AC   2
#define MPSE_KTBM   3
#define MPSE_LOWMEM   4
#define MPSE_AUTO   5
#define MPSE_ACF   6
#define MPSE_ACS   7
#define MPSE_ACB   8
#define MPSE_ACSB   9

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 mpseSearch (void *pv, unsigned char *T, int n, int(*action)(void *id, int index, void *data), void *data)
UINT64 mpseGetPatByteCount ()
void mpseResetByteCount ()
int mpsePrintDetail (void *obj)
int mpsePrintSummary ()


Define Documentation

#define MPSE_AC   2
 

Definition at line 64 of file mpse.h.

Referenced by fpSetDetectSearchMethod(), mpseAddPattern(), mpseFree(), mpseNew(), mpsePrepPatterns(), mpsePrintDetail(), mpseSearch(), and SearchInit().

#define MPSE_ACB   8
 

Definition at line 70 of file mpse.h.

Referenced by fpSetDetectSearchMethod(), mpseAddPattern(), mpseFree(), mpseNew(), mpsePrepPatterns(), mpsePrintDetail(), and mpseSearch().

#define MPSE_ACF   6
 

Definition at line 68 of file mpse.h.

Referenced by fpSetDetectSearchMethod(), mpseAddPattern(), mpseFree(), mpseNew(), mpsePrepPatterns(), mpsePrintDetail(), and mpseSearch().

#define MPSE_ACS   7
 

Definition at line 69 of file mpse.h.

Referenced by fpSetDetectSearchMethod(), mpseAddPattern(), mpseFree(), mpseNew(), mpsePrepPatterns(), mpsePrintDetail(), and mpseSearch().

#define MPSE_ACSB   9
 

Definition at line 71 of file mpse.h.

Referenced by fpSetDetectSearchMethod(), mpseAddPattern(), mpseFree(), mpseNew(), mpsePrepPatterns(), mpsePrintDetail(), and mpseSearch().

#define MPSE_AUTO   5
 

Definition at line 67 of file mpse.h.

Referenced by mpseFree(), mpseLargeShifts(), mpseNew(), mpsePrepPatterns(), mpsePrintDetail(), mpseSearch(), and mpseSetRuleMask().

#define MPSE_KTBM   3
 

Definition at line 65 of file mpse.h.

Referenced by mpseAddPattern(), mpseFree(), mpseNew(), and mpsePrepPatterns().

#define MPSE_LOWMEM   4
 

Definition at line 66 of file mpse.h.

Referenced by fpSetDetectSearchMethod(), mpseAddPattern(), mpseFree(), mpseNew(), mpsePrepPatterns(), mpsePrintDetail(), and mpseSearch().

#define MPSE_MWM   1
 

Definition at line 63 of file mpse.h.

Referenced by fpInitDetectionEngine(), fpSetDetectSearchMethod(), mpseAddPattern(), mpseFree(), mpseLargeShifts(), mpseNew(), mpsePrepPatterns(), mpsePrintDetail(), mpseSearch(), and mpseSetRuleMask().

#define UINT64   unsigned long long
 

Definition at line 56 of file mpse.h.


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 *  obj  ) 
 

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().


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