suricata
|
#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"
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... | |
Stream size for the engine.
Definition in file detect-stream_size.c.
#define MAX_SUBSTRINGS 30 |
Referenced by DetectStreamSizeRegister().
#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().
void DetectStreamSizeFree | ( | void * | ptr | ) |
this function will free memory associated with DetectStreamSizeData
ptr | pointer 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, ip4h, Packet_::ip4h, TcpStream_::isn, DetectStreamSizeData_::mode, TcpStream_::next_seq, PacketGetFromAlloc(), Flow_::protoctx, SCFree, DetectStreamSizeData_::ssize, STREAM_SIZE_CLIENT, STREAM_SIZE_SERVER, tcph, Packet_::tcph, and unlikely.
Referenced by DetectStreamSizeRegister().
void DetectStreamSizeRegister | ( | void | ) |
Registration function for stream_size: keyword.
Definition at line 57 of file detect-stream_size.c.
References TcpSession_::client, SigMatch_::ctx, SigTableElmt_::desc, DETECT_SM_LIST_MATCH, DETECT_STREAM_SIZE, DetectSetupParseRegexes(), DETECTSSIZE_EQ, DETECTSSIZE_GEQ, DETECTSSIZE_GT, DETECTSSIZE_LEQ, DETECTSSIZE_LT, DETECTSSIZE_NEQ, DetectStreamSizeFree(), DetectStreamSizeRegisterTests(), DOC_URL, DOC_VERSION, DetectStreamSizeData_::flags, Packet_::flow, SigTableElmt_::Free, TcpStream_::isn, SigTableElmt_::Match, MAX_SUBSTRINGS, DetectStreamSizeData_::mode, SigTableElmt_::name, TcpStream_::next_seq, PARSE_REGEX, PKT_IS_TCP, Flow_::protoctx, SigTableElmt_::RegisterTests, res, SC_ERR_INVALID_OPERATOR, SC_ERR_PCRE_GET_SUBSTRING, SC_ERR_PCRE_MATCH, SCFree, SCLogDebug, SCLogError, SCMalloc, SCReturnInt, TcpSession_::server, SigTableElmt_::Setup, sigmatch_table, SigMatchAlloc(), SigMatchAppendSMToList(), DetectStreamSizeData_::ssize, STREAM_SIZE_BOTH, STREAM_SIZE_CLIENT, STREAM_SIZE_EITHER, STREAM_SIZE_SERVER, SigMatch_::type, unlikely, and SigTableElmt_::url.
Referenced by SigTableSetup().
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().