suricata
detect-iprep.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "detect.h"
#include "threads.h"
#include "flow.h"
#include "flow-bit.h"
#include "flow-util.h"
#include "detect-iprep.h"
#include "util-spm.h"
#include "app-layer-parser.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "detect-engine-state.h"
#include "util-debug.h"
#include "util-byte.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "util-fmemopen.h"
#include "reputation.h"
#include "host.h"
Include dependency graph for detect-iprep.c:

Go to the source code of this file.

Macros

#define PARSE_REGEX   "\\s*(any|src|dst|both)\\s*,\\s*([A-Za-z0-9\\-\\_]+)\\s*,\\s*(\<|\>|\\=)\\s*,\\s*([0-9]+)\\s*"
 

Functions

void DetectIPRepFree (DetectEngineCtx *, void *)
 
void IPRepRegisterTests (void)
 this function registers unit tests for IPRep More...
 
void DetectIPRepRegister (void)
 

Detailed Description

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

Implements the iprep keyword

Definition in file detect-iprep.c.

Macro Definition Documentation

◆ PARSE_REGEX

#define PARSE_REGEX   "\\s*(any|src|dst|both)\\s*,\\s*([A-Za-z0-9\\-\\_]+)\\s*,\\s*(\<|\>|\\=)\\s*,\\s*([0-9]+)\\s*"

Definition at line 53 of file detect-iprep.c.

Function Documentation

◆ DetectIPRepFree()

void DetectIPRepFree ( DetectEngineCtx de_ctx,
void *  ptr 
)

Definition at line 377 of file detect-iprep.c.

References SCFree.

◆ DetectIPRepRegister()

void DetectIPRepRegister ( void  )

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

References SigTableElmt_::desc, DETECT_IPREP, SigTableElmt_::Match, SigTableElmt_::name, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ IPRepRegisterTests()

void IPRepRegisterTests ( void  )

this function registers unit tests for IPRep

Definition at line 1005 of file detect-iprep.c.

References UtRegisterTest().

Here is the call graph for this function: