suricata
detect-tcpmss.c File Reference
#include "suricata-common.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine-prefilter-common.h"
#include "detect-tcpmss.h"
#include "tests/detect-tcpmss.c"
Include dependency graph for detect-tcpmss.c:

Go to the source code of this file.

Macros

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

Functions

void DetectTcpmssFree (DetectEngineCtx *de_ctx, void *ptr)
 this function will free memory associated with DetectTcpmssData More...
 
void DetectTcpmssRegisterTests (void)
 this function registers unit tests for DetectTcpmss More...
 
void DetectTcpmssRegister (void)
 Registration function for tcpmss: keyword. More...
 

Detailed Description

Macro Definition Documentation

◆ PARSE_REGEX

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

Regex for parsing our options.

Definition at line 37 of file detect-tcpmss.c.

Function Documentation

◆ DetectTcpmssFree()

void DetectTcpmssFree ( DetectEngineCtx de_ctx,
void *  ptr 
)

this function will free memory associated with DetectTcpmssData

Parameters
ptrpointer to DetectTcpmssData

Definition at line 290 of file detect-tcpmss.c.

References SCFree.

◆ DetectTcpmssRegister()

void DetectTcpmssRegister ( void  )

Registration function for tcpmss: keyword.

Definition at line 55 of file detect-tcpmss.c.

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

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ DetectTcpmssRegisterTests()

void DetectTcpmssRegisterTests ( void  )

this function registers unit tests for DetectTcpmss

Definition at line 143 of file detect-tcpmss.c.

References UtRegisterTest().

Here is the call graph for this function: