|
suricata
|
#include "suricata-common.h"

Go to the source code of this file.
Data Structures | |
| struct | DetectTagData_ |
| struct | DetectTagDataEntry_ |
Macros | |
| #define | DETECT_TAG_MATCH_LIMIT 10 |
| #define | DETECT_TAG_MAX_TAGS 50 |
| #define | DETECT_TAG_MAX_PKTS 256 |
| #define | TAG_ENTRY_FLAG_DIR_SRC 0x01 |
| #define | TAG_ENTRY_FLAG_DIR_DST 0x02 |
| #define | TAG_ENTRY_FLAG_SKIPPED_FIRST 0x04 |
Typedefs | |
| typedef struct DetectTagData_ | DetectTagData |
| typedef struct DetectTagDataEntry_ | DetectTagDataEntry |
Enumerations | |
| enum | { DETECT_TAG_TYPE_SESSION , DETECT_TAG_TYPE_HOST , DETECT_TAG_TYPE_MAX } |
| enum | { DETECT_TAG_DIR_SRC , DETECT_TAG_DIR_DST } |
| enum | { DETECT_TAG_METRIC_PACKET , DETECT_TAG_METRIC_SECONDS , DETECT_TAG_METRIC_BYTES } |
Functions | |
| void | DetectTagRegister (void) |
| Registration function for keyword tag. | |
| void | DetectTagDataFree (struct DetectEngineCtx_ *, void *ptr) |
| this function will free memory associated with DetectTagData | |
| void | DetectTagDataListFree (void *ptr) |
| this function will free all the entries of a list DetectTagDataEntry | |
Definition in file detect-tag.h.
| #define DETECT_TAG_MATCH_LIMIT 10 |
Definition at line 32 of file detect-tag.h.
| #define DETECT_TAG_MAX_PKTS 256 |
Definition at line 40 of file detect-tag.h.
| #define DETECT_TAG_MAX_TAGS 50 |
Definition at line 35 of file detect-tag.h.
| #define TAG_ENTRY_FLAG_DIR_DST 0x02 |
Definition at line 89 of file detect-tag.h.
| #define TAG_ENTRY_FLAG_DIR_SRC 0x01 |
Definition at line 88 of file detect-tag.h.
| #define TAG_ENTRY_FLAG_SKIPPED_FIRST 0x04 |
Definition at line 90 of file detect-tag.h.
| typedef struct DetectTagData_ DetectTagData |
This will be the rule options/parameters
| typedef struct DetectTagDataEntry_ DetectTagDataEntry |
This is the installed data at the session/global or host table
| anonymous enum |
| Enumerator | |
|---|---|
| DETECT_TAG_TYPE_SESSION | |
| DETECT_TAG_TYPE_HOST | |
| DETECT_TAG_TYPE_MAX | |
Definition at line 43 of file detect-tag.h.
| anonymous enum |
| Enumerator | |
|---|---|
| DETECT_TAG_DIR_SRC | |
| DETECT_TAG_DIR_DST | |
Definition at line 49 of file detect-tag.h.
| anonymous enum |
| Enumerator | |
|---|---|
| DETECT_TAG_METRIC_PACKET | |
| DETECT_TAG_METRIC_SECONDS | |
| DETECT_TAG_METRIC_BYTES | |
Definition at line 54 of file detect-tag.h.
| 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().

