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

Go to the source code of this file.

Macros

#define PARSE_REGEX   "^\\s*(\"\\s*)?([0-9]+)(\\s*\")?\\s*$"
 
#define MAX_SUBSTRINGS   30
 

Functions

void DetectIcmpIdRegisterTests (void)
 
void DetectIcmpIdFree (void *ptr)
 this function will free memory associated with DetectIcmpIdData More...
 
void DetectIcmpIdRegister (void)
 Registration function for icode: icmp_id. More...
 

Detailed Description

Author
Gerardo Iglesias Galvan igles.nosp@m.iasg.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Implements the icmp_id keyword

Definition in file detect-icmp-id.c.

Macro Definition Documentation

◆ MAX_SUBSTRINGS

#define MAX_SUBSTRINGS   30

◆ PARSE_REGEX

#define PARSE_REGEX   "^\\s*(\"\\s*)?([0-9]+)(\\s*\")?\\s*$"

Definition at line 41 of file detect-icmp-id.c.

Function Documentation

◆ DetectIcmpIdFree()

void DetectIcmpIdFree ( void *  ptr)

this function will free memory associated with DetectIcmpIdData

Parameters
ptrpointer to DetectIcmpIdData

Definition at line 262 of file detect-icmp-id.c.

References SCFree.

◆ DetectIcmpIdRegister()

void DetectIcmpIdRegister ( void  )

Registration function for icode: icmp_id.

Definition at line 57 of file detect-icmp-id.c.

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

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ DetectIcmpIdRegisterTests()

void DetectIcmpIdRegisterTests ( void  )

Definition at line 540 of file detect-icmp-id.c.

References UtRegisterTest().

Here is the call graph for this function: