suricata
detect-icmp-id.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine-prefilter-common.h"
#include "detect-engine-build.h"
#include "detect-engine-alert.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*$"
 

Functions

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

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

◆ PARSE_REGEX

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

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

Function Documentation

◆ DetectIcmpIdFree()

void DetectIcmpIdFree ( DetectEngineCtx de_ctx,
void *  ptr 
)

this function will free memory associated with DetectIcmpIdData

Parameters
ptrpointer to DetectIcmpIdData

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

References SCFree.

◆ DetectIcmpIdRegister()

void DetectIcmpIdRegister ( void  )

Registration function for icode: icmp_id.

Definition at line 59 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: