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

Go to the source code of this file.

Macros

#define PARSE_REGEX   "^\\s*(src_ip|dest_ip)\\s*$"
 Regex for parsing our keyword options. More...
 
#define MAX_SUBSTRINGS   30
 

Functions

void DetectTargetRegister (void)
 Registration function for target keyword. More...
 

Detailed Description

Author
Eric Leblond eric@.nosp@m.regi.nosp@m.t.org

target keyword allow rules writer to specify information about target of the attack

Definition in file detect-target.c.

Macro Definition Documentation

◆ MAX_SUBSTRINGS

#define MAX_SUBSTRINGS   30

◆ PARSE_REGEX

#define PARSE_REGEX   "^\\s*(src_ip|dest_ip)\\s*$"

Regex for parsing our keyword options.

Definition at line 37 of file detect-target.c.

Function Documentation

◆ DetectTargetRegister()

void DetectTargetRegister ( void  )

Registration function for target keyword.

Definition at line 50 of file detect-target.c.

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

Referenced by SigTableSetup().

Here is the caller graph for this function: