Go to the documentation of this file.
27 #ifndef __DETECT_ENGINE_TAG_H__
28 #define __DETECT_ENGINE_TAG_H__
36 #define TAG_MAX_LAST_TIME_SEEN 600
38 #define TAG_TIMEOUT_CHECK_INTERVAL 60
int TagHostHasTag(Host *host)
main detection engine ctx
void TagHandlePacket(DetectEngineCtx *, DetectEngineThreadCtx *, Packet *)
Search tags for src and dst. Update entries of the tag, remove if necessary.
int TagTimeoutCheck(Host *, struct timeval *)
Removes the entries exceding the max timeout value.
int TagFlowAdd(Packet *, DetectTagDataEntry *)
This function is used to add a tag to a session (type session) or update it if it's already installed...
int TagHashAddTag(DetectTagDataEntry *, Packet *)
Add a tag entry for a host. If it already exist, update it.
void DetectEngineTagRegisterTests(void)
this function registers unit tests for DetectTag
void TagDestroyCtx(void)
Destroy tag context hash tables.
void TagRestartCtx(void)
Reset the tagging engine context.
void TagContextDestroy(void)