suricata
detect-tcp-window.c File Reference
#include "suricata-common.h"
#include "debug.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 DetectWindowRegisterTests (void)
 this function registers unit tests for DetectWindow More...
 
void DetectWindowFree (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 ( void *  ptr)

this function will free memory associated with DetectWindowData

Parameters
wdpointer to DetectWindowData

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

References SCFree.

◆ DetectWindowRegister()

void DetectWindowRegister ( void  )

Registration function for window: keyword.

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

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

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ DetectWindowRegisterTests()

void DetectWindowRegisterTests ( void  )

this function registers unit tests for DetectWindow

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

References UtRegisterTest().

Here is the call graph for this function: