|
suricata
|
#include "suricata-common.h"#include "detect.h"#include "detect-parse.h"#include "detect-tag.h"#include "detect-engine-tag.h"#include "detect-engine.h"#include "detect-engine-state.h"#include "app-layer-parser.h"#include "decode.h"#include "flow.h"#include "flow-var.h"#include "flow-util.h"#include "stream-tcp-private.h"#include "util-time.h"#include "util-byte.h"#include "util-unittest.h"#include "util-unittest-helper.h"#include "util-debug.h"#include "threads.h"
Go to the source code of this file.
Macros | |
| #define | PARSE_REGEX "^\\s*(host|session)\\s*(,\\s*(\\d+)\\s*,\\s*(packets|bytes|seconds)\\s*(,\\s*(src|dst))?\\s*)?$" |
Functions | |
| SC_ATOMIC_EXTERN (unsigned int, num_tags) | |
| void | DetectTagDataFree (DetectEngineCtx *de_ctx, void *ptr) |
| this function will free memory associated with DetectTagData | |
| void | DetectTagRegister (void) |
| Registration function for keyword tag. | |
| void | DetectTagDataListFree (void *ptr) |
| this function will free all the entries of a list DetectTagDataEntry | |
Implements the tag keyword
Definition in file detect-tag.c.
| #define PARSE_REGEX "^\\s*(host|session)\\s*(,\\s*(\\d+)\\s*,\\s*(packets|bytes|seconds)\\s*(,\\s*(src|dst))?\\s*)?$" |
Definition at line 54 of file detect-tag.c.
| void DetectTagDataFree | ( | DetectEngineCtx * | de_ctx, |
| void * | ptr | ||
| ) |
this function will free memory associated with DetectTagData
| td | pointer to DetectTagData |
Definition at line 355 of file detect-tag.c.
References SCFree.
Referenced by DetectTagRegister().

| void DetectTagDataListFree | ( | void * | ptr | ) |
this function will free all the entries of a list DetectTagDataEntry
| td | pointer to DetectTagDataEntryList |
Definition at line 336 of file detect-tag.c.
References DetectTagDataEntry_::next, and SC_ATOMIC_SUB.
Referenced by TagInitCtx().

| void DetectTagRegister | ( | void | ) |
Registration function for keyword tag.
Definition at line 69 of file detect-tag.c.
References DETECT_TAG, DetectSetupParseRegexes(), DetectTagDataFree(), SigTableElmt_::flags, SigTableElmt_::Free, SigTableElmt_::Match, SigTableElmt_::name, PARSE_REGEX, SigTableElmt_::RegisterTests, SigTableElmt_::Setup, SIGMATCH_IPONLY_COMPAT, and sigmatch_table.
Referenced by SigTableSetup().


| SC_ATOMIC_EXTERN | ( | unsigned int | , |
| num_tags | |||
| ) |