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...
 

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

◆ PARSE_REGEX

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

Regex for parsing our keyword options.

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

Function Documentation

◆ DetectTargetRegister()

void DetectTargetRegister ( void  )

Registration function for target keyword.

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

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

Referenced by SigTableSetup().

Here is the caller graph for this function: