suricata
detect-replace.c File Reference
#include "suricata-common.h"
#include "runmodes.h"
#include "decode.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-content.h"
#include "detect-uricontent.h"
#include "detect-byte-extract.h"
#include "detect-replace.h"
#include "app-layer.h"
#include "detect-engine-mpm.h"
#include "detect-engine.h"
#include "detect-engine-state.h"
#include "util-checksum.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "flow-var.h"
#include "util-debug.h"
#include "pkt-var.h"
#include "host.h"
#include "util-profiling.h"
Include dependency graph for detect-replace.c:

Go to the source code of this file.

Functions

void DetectReplaceRegisterTests (void)
 this function registers unit tests for DetectContent More...
 
void DetectReplaceRegister (void)
 
DetectReplaceListDetectReplaceAddToList (DetectReplaceList *replist, uint8_t *found, DetectContentData *cd)
 
void DetectReplaceExecuteInternal (Packet *p, DetectReplaceList *replist)
 
void DetectReplaceFreeInternal (DetectReplaceList *replist)
 

Variables

int run_mode
 

Detailed Description

Author
Eric Leblond eric@.nosp@m.regi.nosp@m.t.org

Replace part of the detection engine.

If previous filter is of content type, replace can be used to change the matched part to a new value.

Definition in file detect-replace.c.

Function Documentation

DetectReplaceList* DetectReplaceAddToList ( DetectReplaceList replist,
uint8_t *  found,
DetectContentData cd 
)
void DetectReplaceExecuteInternal ( Packet p,
DetectReplaceList replist 
)
void DetectReplaceRegisterTests ( void  )

this function registers unit tests for DetectContent

Definition at line 815 of file detect-replace.c.

References UtRegisterTest().

Referenced by DetectReplaceRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

int run_mode

Run mode selected

Definition at line 204 of file suricata.c.

Referenced by DetectEngineCtxFree(), DetectReplaceFreeInternal(), DetectReplaceRegister(), and Unified2AlertInitCtx().