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 "util-byte.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 (DetectEngineCtx *de_ctx, void *ptr)
 this function will free memory associated with DetectStreamSizeData 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 43 of file detect-stream_size.c.

Function Documentation

◆ DetectStreamSizeFree()

void DetectStreamSizeFree ( DetectEngineCtx de_ctx,
void *  ptr 
)

this function will free memory associated with DetectStreamSizeData

Parameters
ptrpointer to DetectStreamSizeData

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

References SCFree.

◆ DetectStreamSizeRegister()

void DetectStreamSizeRegister ( void  )

Registration function for stream_size: keyword.

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

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

Referenced by SigTableSetup().

Here is the caller graph for this function: