suricata
detect-ttl.c File Reference
#include "suricata-common.h"
#include "stream-tcp.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine-prefilter-common.h"
#include "detect-ttl.h"
#include "util-debug.h"
#include "tests/detect-ttl.c"
Include dependency graph for detect-ttl.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 ttl options. More...
 
#define MAX_SUBSTRINGS   30
 

Functions

void DetectTtlFree (void *ptr)
 this function will free memory associated with DetectTtlData More...
 
void DetectTtlRegisterTests (void)
 this function registers unit tests for DetectTtl More...
 
void DetectTtlRegister (void)
 Registration function for ttl: keyword. More...
 

Detailed Description

Author
Gurvinder Singh gurvi.nosp@m.nder.nosp@m.sighd.nosp@m.ahiy.nosp@m.a@gma.nosp@m.il.c.nosp@m.om
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Implements the ttl keyword including prefilter support.

Definition in file detect-ttl.c.

Macro Definition Documentation

#define MAX_SUBSTRINGS   30

Referenced by DetectTtlRegister().

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

Regex for parsing our ttl options.

Definition at line 40 of file detect-ttl.c.

Referenced by DetectTtlRegister().

Function Documentation

void DetectTtlFree ( void *  ptr)
void DetectTtlRegisterTests ( void  )

this function registers unit tests for DetectTtl

Definition at line 209 of file detect-ttl.c.

References UtRegisterTest().

Referenced by DetectTtlRegister().

Here is the call graph for this function:

Here is the caller graph for this function: