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

mstring.c File Reference

#include <sys/types.h>
#include "mstring.h"
#include "debug.h"
#include "plugbase.h"

Go to the source code of this file.

Functions

void FatalPrintError (char *)
char ** mSplit (char *str, char *sep, int max_strs, int *toks, char meta)
void mSplitFree (char ***pbuf, int num_toks)
int mContainsSubstr (char *buf, int b_len, char *pat, int p_len)
int * make_skip (char *ptrn, int plen)
int * make_shift (char *ptrn, int plen)
int mSearch (char *buf, int blen, char *ptrn, int plen, int *skip, int *shift)
int mSearchCI (char *buf, int blen, char *ptrn, int plen, int *skip, int *shift)
int mSearchREG (char *buf, int blen, char *ptrn, int plen, int *skip, int *shift)

Variables

u_int8_t * doe_ptr


Function Documentation

void FatalPrintError (  char *   ) 
 

Definition at line 702 of file util.c.

Referenced by make_shift(), make_skip(), mSplit(), ParseCmdLine(), and ParseConfig().

int* make_shift (  char *  ptrn,
int  plen
) 
 

Definition at line 470 of file mstring.c.

References FatalPrintError(), and NULL.

Referenced by make_precomp().

int* make_skip (  char *  ptrn,
int  plen
) 
 

Definition at line 437 of file mstring.c.

References char(), FatalPrintError(), and NULL.

Referenced by make_precomp().

int mContainsSubstr (  char *  buf,
int  b_len,
char *  pat,
int  p_len
) 
 

Definition at line 361 of file mstring.c.

References DEBUG_PATTERN_MATCH, and DEBUG_WRAP.

int mSearch (  char *  buf,
int  blen,
char *  ptrn,
int  plen,
int *  skip,
int *  shift
) 
 

Definition at line 529 of file mstring.c.

References char(), DEBUG_PATTERN_MATCH, DEBUG_WRAP, detect_depth, doe_ptr, and fasthex().

Referenced by uniSearchReal().

int mSearchCI (  char *  buf,
int  blen,
char *  ptrn,
int  plen,
int *  skip,
int *  shift
) 
 

Definition at line 615 of file mstring.c.

References char(), DEBUG_PATTERN_MATCH, DEBUG_WRAP, detect_depth, and doe_ptr.

Referenced by uniSearchReal().

int mSearchREG (  char *  buf,
int  blen,
char *  ptrn,
int  plen,
int *  skip,
int *  shift
) 
 

Definition at line 680 of file mstring.c.

References char(), DEBUG_PATTERN_MATCH, and DEBUG_WRAP.

char** mSplit (  char *  str,
char *  sep,
int  max_strs,
int *  toks,
char  meta
) 
 

Definition at line 109 of file mstring.c.

References char(), DEBUG_PATTERN_MATCH, DEBUG_WRAP, FatalPrintError(), memcpy, and NULL.

Referenced by AlertCSVParseArgs(), ByteJumpParse(), ByteTestParse(), CreateServerList(), Frag3ParseArgs(), Frag3ParseGlobalArgs(), FTPBounceParse(), GenHomenet(), GenObfuscationMask(), InitIgnoreHosts(), InitIgnorePorts(), IpAddrSetParse(), IsDataAtParse(), OrderRuleLists(), ParseAlertFastArgs(), ParseAlertFullArgs(), ParseARPspoofArgs(), ParseARPspoofHostArgs(), parseCIDR(), ParseClassificationConfig(), ParseConfig(), ParseConvArgs(), ParseFrag2Args(), ParseIP(), ParseOutputPlugin(), ParsePerfMonitorArgs(), ParsePort(), ParsePortList(), ParsePortscanArgs(), ParsePreprocessor(), ParseReference(), ParseReferenceSystemConfig(), ParseRule(), ParseRuleOptions(), ParseRuleTypeDeclaration(), ParseScanmungeArgs(), ParseSFSuppress(), ParseSFThreshold(), ParseStream4Args(), ParseSyslogArgs(), PortscanIgnoreParseIP(), PortscanParseIP(), ProcessIP(), ProcessResetMac(), ProcessThresholdOptions(), ScanParseIp(), SetRpcPorts(), SetTelnetPorts(), Stream4InitReassembler(), and UnifiedParseArgs().

void mSplitFree (  char ***  pbuf,
int  num_toks
) 
 

Definition at line 315 of file mstring.c.

References NULL.

Referenced by ByteJumpParse(), ByteTestParse(), CreateServerList(), Frag3ParseArgs(), Frag3ParseGlobalArgs(), FTPBounceParse(), GenHomenet(), GenObfuscationMask(), InitIgnoreHosts(), InitIgnorePorts(), IpAddrSetParse(), IsDataAtParse(), OrderRuleLists(), ParseAlertFastArgs(), ParseAlertFullArgs(), ParseARPspoofArgs(), ParseARPspoofHostArgs(), parseCIDR(), ParseClassificationConfig(), ParseConfig(), ParseConvArgs(), ParseFrag2Args(), ParseIP(), ParseOutputPlugin(), ParsePerfMonitorArgs(), ParsePort(), ParsePortList(), ParsePortscanArgs(), ParsePreprocessor(), ParseReference(), ParseReferenceSystemConfig(), ParseRule(), ParseRuleOptions(), ParseRuleTypeDeclaration(), ParseScanmungeArgs(), ParseSFSuppress(), ParseSFThreshold(), ParseStream4Args(), ParseSyslogArgs(), PortscanIgnoreParseIP(), PortscanParseIP(), ProcessIP(), ProcessThresholdOptions(), ScanParseIp(), SetRpcPorts(), SetTelnetPorts(), and Stream4InitReassembler().


Variable Documentation

u_int8_t* doe_ptr
 

Definition at line 72 of file sp_pattern_match.c.


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