suricata
detect-template2.c File Reference
Include dependency graph for detect-template2.c:

Go to the source code of this file.

Macros

#define PARSE_REGEX   "^\\s*([0-9]*)?\\s*([<>=-]+)?\\s*([0-9]+)?\\s*$"
 Regex for parsing our options. More...
 
#define MAX_SUBSTRINGS   30
 

Functions

void DetectTemplate2Free (void *ptr)
 this function will free memory associated with DetectTemplate2Data More...
 
void DetectTemplate2RegisterTests (void)
 this function registers unit tests for DetectTemplate2 More...
 
void DetectTemplate2Register (void)
 Registration function for template2: keyword. More...
 

Detailed Description

Author
XXX

Definition in file detect-template2.c.

Macro Definition Documentation

◆ MAX_SUBSTRINGS

#define MAX_SUBSTRINGS   30

◆ PARSE_REGEX

#define PARSE_REGEX   "^\\s*([0-9]*)?\\s*([<>=-]+)?\\s*([0-9]+)?\\s*$"

Regex for parsing our options.

Definition at line 36 of file detect-template2.c.

Function Documentation

◆ DetectTemplate2Free()

void DetectTemplate2Free ( void *  ptr)

this function will free memory associated with DetectTemplate2Data

Parameters
ptrpointer to DetectTemplate2Data

Definition at line 299 of file detect-template2.c.

References SCFree.

◆ DetectTemplate2Register()

void DetectTemplate2Register ( void  )

Registration function for template2: keyword.

Definition at line 56 of file detect-template2.c.

References SigTableElmt_::desc, DETECT_TEMPLATE2, DOC_URL, DOC_VERSION, SigTableElmt_::Match, SigTableElmt_::name, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ DetectTemplate2RegisterTests()

void DetectTemplate2RegisterTests ( void  )

this function registers unit tests for DetectTemplate2

Definition at line 145 of file detect-template2.c.

References UtRegisterTest().

Here is the call graph for this function: