suricata
detect-reference.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "decode.h"
#include "flow-var.h"
#include "decode-events.h"
#include "stream-tcp.h"
#include "util-reference-config.h"
#include "detect-reference.h"
#include "util-unittest.h"
#include "util-byte.h"
#include "util-debug.h"
Include dependency graph for detect-reference.c:

Go to the source code of this file.

Macros

#define PARSE_REGEX
 

Functions

void DetectReferenceRegister (void)
 Registration function for the reference: keyword. More...
 
void DetectReferenceFree (DetectReference *ref)
 Free a Reference object. More...
 

Detailed Description

Author
Breno Silva breno.nosp@m..sil.nosp@m.va@gm.nosp@m.ail..nosp@m.com
Anoop Saldanha anoop.nosp@m.sald.nosp@m.anha@.nosp@m.gmai.nosp@m.l.com

Implements the reference keyword support

Definition in file detect-reference.c.

Macro Definition Documentation

◆ PARSE_REGEX

#define PARSE_REGEX
Value:
"^\\s*([A-Za-z0-9]+)\\s*,\"?\\s*\"?\\s*([a-zA-Z]+:\\/\\/)?([a-zA-Z0-9\\-_\\.\\/" \
"\\?\\=]+)\"?\\s*\"?"

Definition at line 48 of file detect-reference.c.

Function Documentation

◆ DetectReferenceFree()

void DetectReferenceFree ( DetectReference )

Free a Reference object.

Free function for a Reference object

Definition at line 76 of file detect-reference.c.

References DetectReference_::key, DetectReference_::reference, SCEnter, SCFree, and SCReturn.

◆ DetectReferenceRegister()

void DetectReferenceRegister ( void  )

Registration function for the reference: keyword.

Registration function for Reference keyword

Definition at line 61 of file detect-reference.c.

References SigTableElmt_::desc, DETECT_REFERENCE, SigTableElmt_::name, SigTableElmt_::Setup, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the caller graph for this function: