detect-mark.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "decode.h"
#include "detect.h"
#include "flow-var.h"
#include "decode-events.h"
#include "detect-mark.h"
#include "detect-parse.h"
#include "util-unittest.h"
#include "util-debug.h"
Include dependency graph for detect-mark.c:

Go to the source code of this file.


#define PARSE_REGEX   "([0x]*[0-9a-f]+)/([0x]*[0-9a-f]+)"
#define MAX_SUBSTRINGS   30


void DetectMarkDataFree (void *ptr)
void DetectMarkRegister (void)
 Registration function for nfq_set_mark: keyword. More...
void MarkRegisterTests (void)
 this function registers unit tests for Mark More...

Detailed Description

Eric Leblond

Implements the mark keyword. Based on detect-gid by Breno Silva

Definition in file detect-mark.c.

Macro Definition Documentation


#define MAX_SUBSTRINGS   30


#define PARSE_REGEX   "([0x]*[0-9a-f]+)/([0x]*[0-9a-f]+)"

Definition at line 40 of file detect-mark.c.

Function Documentation

◆ DetectMarkDataFree()

void DetectMarkDataFree ( void *  ptr)

Definition at line 210 of file detect-mark.c.

References SCFree.

◆ DetectMarkRegister()

void DetectMarkRegister ( void  )

Registration function for nfq_set_mark: keyword.

Registration function for nfq_set_mark: keyword

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

References DETECT_MARK, SigTableElmt_::Match, SigTableElmt_::name, and sigmatch_table.

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ MarkRegisterTests()

void MarkRegisterTests ( void  )

this function registers unit tests for Mark

This function registers unit tests for Mark

Definition at line 338 of file detect-mark.c.

References UtRegisterTest().

Here is the call graph for this function: