suricata
detect-icmp-seq.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-seq.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-seq.c:

Go to the source code of this file.

Macros

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

Functions

void DetectIcmpSeqRegisterTests (void)
 
void DetectIcmpSeqFree (DetectEngineCtx *de_ctx, void *ptr)
 this function will free memory associated with DetectIcmpSeqData More...
 
void DetectIcmpSeqRegister (void)
 Registration function for icmp_seq. More...
 

Detailed Description

Author
Breno Silva breno.nosp@m..sil.nosp@m.va@gm.nosp@m.ail..nosp@m.com

Implements the icmp_seq keyword

Definition in file detect-icmp-seq.c.

Macro Definition Documentation

◆ PARSE_REGEX

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

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

Function Documentation

◆ DetectIcmpSeqFree()

void DetectIcmpSeqFree ( DetectEngineCtx de_ctx,
void *  ptr 
)

this function will free memory associated with DetectIcmpSeqData

Parameters
ptrpointer to DetectIcmpSeqData

Definition at line 263 of file detect-icmp-seq.c.

References SCFree.

◆ DetectIcmpSeqRegister()

void DetectIcmpSeqRegister ( void  )

Registration function for icmp_seq.

Definition at line 56 of file detect-icmp-seq.c.

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

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ DetectIcmpSeqRegisterTests()

void DetectIcmpSeqRegisterTests ( void  )

Definition at line 434 of file detect-icmp-seq.c.

References UtRegisterTest().

Here is the call graph for this function: