suricata
detect-id.c File Reference
#include "suricata-common.h"
#include "debug.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-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...
 
#define MAX_SUBSTRINGS   30
 

Functions

void DetectIdRegisterTests (void)
 this function registers unit tests for DetectId More...
 
void DetectIdFree (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

#define MAX_SUBSTRINGS   30

Referenced by DetectIdRegister().

#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 47 of file detect-id.c.

Referenced by DetectIdRegister().

Function Documentation

void DetectIdFree ( void *  ptr)
void DetectIdRegisterTests ( void  )

this function registers unit tests for DetectId

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

References UtRegisterTest().

Referenced by DetectIdRegister().

Here is the call graph for this function:

Here is the caller graph for this function: