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

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

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

Referenced by DetectStreamSizeRegister().

Function Documentation

void DetectStreamSizeFree ( void *  ptr)

this function will free memory associated with DetectStreamSizeData

Parameters
ptrpointer to DetectStreamSizeData

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

References TcpSession_::client, SigMatch_::ctx, DETECTSSIZE_GT, DETECTSSIZE_LT, DetectStreamSizeData_::flags, Packet_::flow, Packet_::ip4h, TcpStream_::isn, DetectStreamSizeData_::mode, TcpStream_::next_seq, PacketGetFromAlloc(), Flow_::protoctx, SCFree, DetectStreamSizeData_::ssize, STREAM_SIZE_CLIENT, STREAM_SIZE_SERVER, Packet_::tcph, and unlikely.

Referenced by DetectStreamSizeRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

void DetectStreamSizeRegisterTests ( void  )

this function registers unit tests for DetectStreamSize

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

References UtRegisterTest().

Referenced by DetectStreamSizeRegister().

Here is the call graph for this function:

Here is the caller graph for this function: