suricata
|
#include "suricata-common.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-metadata.h"
#include "util-hash-string.h"
#include "util-unittest.h"
#include "rust.h"
#include "util-validate.h"
Go to the source code of this file.
Macros | |
#define | MD_STR "\"metadata\":" |
#define | MD_STR_LEN (sizeof(MD_STR) - 1) |
Functions | |
void | DetectMetadataRegister (void) |
void | DetectMetadataFree (DetectMetadata *mdata) |
Free a Metadata object. More... | |
int | DetectMetadataHashInit (DetectEngineCtx *de_ctx) |
void | DetectMetadataHashFree (DetectEngineCtx *de_ctx) |
Implements metadata keyword support
Definition in file detect-metadata.c.
#define MD_STR "\"metadata\":" |
#define MD_STR_LEN (sizeof(MD_STR) - 1) |
void DetectMetadataFree | ( | DetectMetadata * | mdata | ) |
Free a Metadata object.
Definition at line 60 of file detect-metadata.c.
void DetectMetadataHashFree | ( | DetectEngineCtx * | de_ctx | ) |
Definition at line 80 of file detect-metadata.c.
References de_ctx, HashTableFree(), and DetectEngineCtx_::metadata_table.
int DetectMetadataHashInit | ( | DetectEngineCtx * | de_ctx | ) |
Definition at line 69 of file detect-metadata.c.
References de_ctx, DetectEngineMustParseMetadata(), HashTableInit(), DetectEngineCtx_::metadata_table, StringHashCompareFunc(), StringHashFreeFunc(), and StringHashFunc().
void DetectMetadataRegister | ( | void | ) |
Definition at line 44 of file detect-metadata.c.
References SigTableElmt_::desc, DETECT_METADATA, SigTableElmt_::Match, SigTableElmt_::name, SigTableElmt_::Setup, sigmatch_table, and SigTableElmt_::url.
Referenced by SigTableSetup().