detect-template.c File Reference
#include "suricata-common.h"
#include "util-unittest.h"
#include "util-byte.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-template.h"
#include "tests/detect-template.c"
Include dependency graph for detect-template.c:

Go to the source code of this file.


#define PARSE_REGEX   "^\\s*([0-9]+)?\\s*,s*([0-9]+)?\\s*$"
 Regex for parsing our keyword options. More...


void DetectTemplateRegister (void)
 Registration function for template: keyword. More...

Detailed Description

XXX Yourname <youremail@yourdomain>

XXX Short description of the purpose of this keyword

Definition in file detect-template.c.

Macro Definition Documentation


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

Regex for parsing our keyword options.

Definition at line 39 of file detect-template.c.

Function Documentation

◆ DetectTemplateRegister()

void DetectTemplateRegister ( void  )

Registration function for template: keyword.

registers the keyword into the engine. Called from detect.c::SigTableSetup()

This function is called once in the 'lifetime' of the engine.

Definition at line 55 of file detect-template.c.

References SigTableElmt_::desc, DETECT_TEMPLATE, SigTableElmt_::Match, SigTableElmt_::name, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the caller graph for this function: