suricata
|
#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 "util-byte.h"
#include "tests/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... | |
Functions | |
void | DetectTtlFree (DetectEngineCtx *de_ctx, 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... | |
Implements the ttl keyword including prefilter support.
Definition in file detect-ttl.c.
#define PARSE_REGEX "^\\s*([0-9]*)?\\s*([<>=-]+)?\\s*([0-9]+)?\\s*$" |
Regex for parsing our ttl options.
Definition at line 42 of file detect-ttl.c.
void DetectTtlFree | ( | DetectEngineCtx * | de_ctx, |
void * | ptr | ||
) |
this function will free memory associated with DetectTtlData
ptr | pointer to DetectTtlData |
Definition at line 306 of file detect-ttl.c.
References SCFree.
void DetectTtlRegister | ( | void | ) |
Registration function for ttl: keyword.
Definition at line 60 of file detect-ttl.c.
References SigTableElmt_::desc, DETECT_TTL, SigTableElmt_::Match, SigTableElmt_::name, sigmatch_table, and SigTableElmt_::url.
Referenced by SigTableSetup().
void DetectTtlRegisterTests | ( | void | ) |
this function registers unit tests for DetectTtl
Definition at line 209 of file detect-ttl.c.
References UtRegisterTest().