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.


void DetectReplaceRegister (void)
DetectReplaceListDetectReplaceAddToList (DetectReplaceList *replist, uint8_t *found, DetectContentData *cd)
void DetectReplaceExecuteInternal (Packet *p, DetectReplaceList *replist)
void DetectReplaceFreeInternal (DetectReplaceList *replist)


int run_mode

Detailed Description

Eric Leblond

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

◆ DetectReplaceAddToList()

DetectReplaceList* DetectReplaceAddToList ( DetectReplaceList replist,
uint8_t *  found,
DetectContentData cd 

◆ DetectReplaceExecuteInternal()

void DetectReplaceExecuteInternal ( Packet p,
DetectReplaceList replist 

◆ DetectReplaceFreeInternal()

void DetectReplaceFreeInternal ( DetectReplaceList replist)

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

References DetectReplaceList_::next, SCFree, and SCLogDebug.

◆ DetectReplaceRegister()

void DetectReplaceRegister ( void  )

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

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

Referenced by SigTableSetup().

Here is the caller graph for this function:

Variable Documentation

◆ run_mode

int run_mode

Run mode selected

Definition at line 203 of file suricata.c.

Referenced by DPDKCleanupEAL(), DPDKCloseDevice(), and LLVMFuzzerTestOneInput().