suricata
detect-metadata.c File Reference
#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 dependency graph for detect-metadata.c:

Go to the source code of this file.

Functions

void DetectMetadataRegister (void)
 
void DetectMetadataFree (DetectMetadata *mdata)
 Free a Metadata object. More...
 
int DetectMetadataHashInit (DetectEngineCtx *de_ctx)
 
void DetectMetadataHashFree (DetectEngineCtx *de_ctx)
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Implements metadata keyword support

Todo:
Do we need to do anything more this is used in snort host attribute table It is also used for rule managment.

Definition in file detect-metadata.c.

Function Documentation

void DetectMetadataFree ( DetectMetadata mdata)

Free a Metadata object.

Definition at line 54 of file detect-metadata.c.

References SCEnter, SCFree, and SCReturn.

Referenced by SigAlloc().

Here is the caller graph for this function:

int DetectMetadataHashInit ( DetectEngineCtx de_ctx)

Definition at line 63 of file detect-metadata.c.

References DetectEngineMustParseMetadata(), HashTableInit(), DetectEngineCtx_::metadata_table, StringHashCompareFunc(), StringHashFreeFunc(), and StringHashFunc().

Referenced by DetectEngineInspectBufferGeneric().

Here is the call graph for this function:

Here is the caller graph for this function:

void DetectMetadataRegister ( void  )