suricata
detect-id.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "detect-engine-prefilter-common.h"
#include "detect-id.h"
#include "flow.h"
#include "flow-var.h"
#include "util-debug.h"
#include "util-byte.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
Include dependency graph for detect-id.c:

Go to the source code of this file.

Macros

#define PARSE_REGEX   "^\\s*([0-9]{1,5}|\"[0-9]{1,5}\")\\s*$"
 Regex for parsing "id" option, matching number or "number". More...
 

Functions

void DetectIdFree (DetectEngineCtx *de_ctx, void *ptr)
 this function will free memory associated with DetectIdData More...
 
void DetectIdRegister (void)
 Registration function for keyword: id. More...
 

Detailed Description

Author
Pablo Rincon Crespo pablo.nosp@m..rin.nosp@m.con.c.nosp@m.resp.nosp@m.o@gma.nosp@m.il.c.nosp@m.om

Implements the id keyword

Definition in file detect-id.c.

Macro Definition Documentation

◆ PARSE_REGEX

#define PARSE_REGEX   "^\\s*([0-9]{1,5}|\"[0-9]{1,5}\")\\s*$"

Regex for parsing "id" option, matching number or "number".

Definition at line 48 of file detect-id.c.

Function Documentation

◆ DetectIdFree()

void DetectIdFree ( DetectEngineCtx de_ctx,
void *  ptr 
)

this function will free memory associated with DetectIdData

Parameters
id_dpointer to DetectIdData

Definition at line 217 of file detect-id.c.

References SCFree.

◆ DetectIdRegister()

void DetectIdRegister ( void  )

Registration function for keyword: id.

Definition at line 65 of file detect-id.c.

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

Referenced by SigTableSetup().

Here is the caller graph for this function: