suricata
detect-tcp-window.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-tcp-window.h"
#include "flow.h"
#include "flow-var.h"
#include "util-debug.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "util-byte.h"
Include dependency graph for detect-tcp-window.c:

Go to the source code of this file.

Macros

#define PARSE_REGEX   "^\\s*([!])?\\s*([0-9]{1,9}+)\\s*$"
 Regex for parsing our window option. More...
 

Functions

void DetectWindowFree (DetectEngineCtx *de_ctx, void *ptr)
 this function will free memory associated with DetectWindowData More...
 
void DetectWindowRegister (void)
 Registration function for window: keyword. More...
 

Detailed Description

Author
Pablo Rincon Crespo pablo.nosp@m..rin.nosp@m.con.c.nosp@m.resp.nosp@m.o@gma.nosp@m.il.c.nosp@m.om

Implements the window keyword.

Definition in file detect-tcp-window.c.

Macro Definition Documentation

◆ PARSE_REGEX

#define PARSE_REGEX   "^\\s*([!])?\\s*([0-9]{1,9}+)\\s*$"

Regex for parsing our window option.

Definition at line 45 of file detect-tcp-window.c.

Function Documentation

◆ DetectWindowFree()

void DetectWindowFree ( DetectEngineCtx de_ctx,
void *  ptr 
)

this function will free memory associated with DetectWindowData

Parameters
wdpointer to DetectWindowData

Definition at line 213 of file detect-tcp-window.c.

References SCFree.

◆ DetectWindowRegister()

void DetectWindowRegister ( void  )

Registration function for window: keyword.

Definition at line 59 of file detect-tcp-window.c.

References SigTableElmt_::alias, SigTableElmt_::desc, DETECT_WINDOW, SigTableElmt_::Match, SigTableElmt_::name, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the caller graph for this function: