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.


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


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

Detailed Description

Gerardo Iglesias Galvan

Implements the icmp_id keyword

Definition in file detect-icmp-id.c.

Macro Definition Documentation


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

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

Function Documentation

◆ DetectIcmpIdFree()

void DetectIcmpIdFree ( DetectEngineCtx de_ctx,
void *  ptr 

this function will free memory associated with DetectIcmpIdData

ptrpointer to DetectIcmpIdData

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

References SCFree.

◆ DetectIcmpIdRegister()

void DetectIcmpIdRegister ( void  )

Registration function for icode: icmp_id.

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

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

Referenced by SigTableSetup().

Here is the caller graph for this function: