suricata
detect-template.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DetectTemplateData_
 

Typedefs

typedef struct DetectTemplateData_ DetectTemplateData
 

Functions

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

Detailed Description

Author
XXX Yourname <youremail>

Definition in file detect-template.h.

Typedef Documentation

Per keyword data. This is set up by the DetectTemplateSetup() function. Each signature will have an instance of DetectTemplateData per occurence of the keyword. The structure should be considered static/readonly after initialization.

Function Documentation

void DetectTemplateRegister ( void  )

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

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 DetectTemplateData_::arg1, DetectTemplateData_::arg2, SigMatch_::ctx, SigTableElmt_::desc, DETECT_SM_LIST_MATCH, DETECT_TEMPLATE, DetectSetupParseRegexes(), DetectTemplateRegisterTests(), Signature_::flags, SigTableElmt_::Free, SigTableElmt_::Match, MAX_SUBSTRINGS, SigTableElmt_::name, PARSE_REGEX, Packet_::payload, Packet_::payload_len, PKT_IS_IPV4, PKT_IS_IPV6, PKT_IS_PSEUDOPKT, SigTableElmt_::RegisterTests, SC_ERR_PCRE_GET_SUBSTRING, SC_ERR_PCRE_MATCH, SCFree, SCLogDebug, SCLogError, SCMalloc, SigTableElmt_::Setup, SIG_FLAG_REQUIRE_PACKET, sigmatch_table, SigMatchAlloc(), SigMatchAppendSMToList(), SigMatch_::type, unlikely, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the call graph for this function:

Here is the caller graph for this function: