suricata
detect-fragoffset.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "decode-ipv4.h"
#include "decode-ipv6.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine-prefilter-common.h"
#include "detect-engine-build.h"
#include "detect-fragoffset.h"
#include "util-byte.h"
#include "util-unittest.h"
#include "util-debug.h"
#include "util-unittest-helper.h"
#include "detect-engine.h"
#include "detect-engine-alert.h"
Include dependency graph for detect-fragoffset.c:

Go to the source code of this file.

Macros

#define PARSE_REGEX   "^\\s*(?:(<|>))?\\s*([0-9]+)"
 

Functions

void DetectFragOffsetRegisterTests (void)
 
void DetectFragOffsetFree (DetectEngineCtx *de_ctx, void *ptr)
 this function will free memory associated with DetectFragOffsetData More...
 
void DetectFragOffsetRegister (void)
 Registration function for fragoffset. More...
 

Detailed Description

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

Implements fragoffset keyword

Definition in file detect-fragoffset.c.

Macro Definition Documentation

◆ PARSE_REGEX

#define PARSE_REGEX   "^\\s*(?:(<|>))?\\s*([0-9]+)"

Definition at line 43 of file detect-fragoffset.c.

Function Documentation

◆ DetectFragOffsetFree()

void DetectFragOffsetFree ( DetectEngineCtx de_ctx,
void *  ptr 
)

this function will free memory associated with DetectFragOffsetData

Parameters
ptrpointer to DetectFragOffsetData

Definition at line 257 of file detect-fragoffset.c.

References SCFree.

◆ DetectFragOffsetRegister()

void DetectFragOffsetRegister ( void  )

Registration function for fragoffset.

Definition at line 60 of file detect-fragoffset.c.

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

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ DetectFragOffsetRegisterTests()

void DetectFragOffsetRegisterTests ( void  )

Definition at line 439 of file detect-fragoffset.c.

References UtRegisterTest().

Here is the call graph for this function: