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...
 
#define MAX_SUBSTRINGS   30
 

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

#define MAX_SUBSTRINGS   30

Referenced by DetectWindowRegister().

#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.

Referenced by DetectWindowRegister().

Function Documentation

void DetectWindowFree ( void *  ptr)

this function will free memory associated with DetectWindowData

Parameters
wdpointer to DetectWindowData

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

References DetectWindowData_::negated, SCFree, DetectWindowData_::size, Packet_::tcph, UTHBuildPacket(), UTHFreePackets(), and UTHGenericTest().

Referenced by DetectWindowRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

void DetectWindowRegisterTests ( void  )

this function registers unit tests for DetectWindow

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

References UtRegisterTest().

Referenced by DetectWindowRegister().

Here is the call graph for this function:

Here is the caller graph for this function: