suricata
detect-stream_size.c File Reference
#include "suricata-common.h"
#include "stream-tcp.h"
#include "util-unittest.h"
#include "detect.h"
#include "detect-parse.h"
#include "flow.h"
#include "detect-stream_size.h"
#include "stream-tcp-private.h"
#include "util-debug.h"
Include dependency graph for detect-stream_size.c:

Go to the source code of this file.

Macros

#define PARSE_REGEX   "^\\s*([A-z_]+)\\s*,\\s*([<=>!]+)\\s*,\\s*([0-9]+)\\s*$"
 Regex for parsing our flow options. More...
 

Functions

void DetectStreamSizeFree (void *ptr)
 this function will free memory associated with DetectStreamSizeData More...
 
void DetectStreamSizeRegisterTests (void)
 this function registers unit tests for DetectStreamSize More...
 
void DetectStreamSizeRegister (void)
 Registration function for stream_size: keyword. More...
 

Detailed Description

Author
Gurvinder Singh gurvi.nosp@m.nder.nosp@m.singh.nosp@m.dahi.nosp@m.ya@gm.nosp@m.ail..nosp@m.com

Stream size for the engine.

Definition in file detect-stream_size.c.

Macro Definition Documentation

◆ PARSE_REGEX

#define PARSE_REGEX   "^\\s*([A-z_]+)\\s*,\\s*([<=>!]+)\\s*,\\s*([0-9]+)\\s*$"

Regex for parsing our flow options.

Definition at line 41 of file detect-stream_size.c.

Function Documentation

◆ DetectStreamSizeFree()

void DetectStreamSizeFree ( void *  ptr)

this function will free memory associated with DetectStreamSizeData

Parameters
ptrpointer to DetectStreamSizeData

Definition at line 321 of file detect-stream_size.c.

References SCFree.

◆ DetectStreamSizeRegister()

void DetectStreamSizeRegister ( void  )

Registration function for stream_size: keyword.

Definition at line 56 of file detect-stream_size.c.

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

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ DetectStreamSizeRegisterTests()

void DetectStreamSizeRegisterTests ( void  )

this function registers unit tests for DetectStreamSize

Definition at line 504 of file detect-stream_size.c.

References UtRegisterTest().

Here is the call graph for this function: