suricata
detect-http-uri.c File Reference
#include "suricata-common.h"
#include "threads.h"
#include "debug.h"
#include "decode.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "detect-engine-prefilter.h"
#include "detect-content.h"
#include "detect-pcre.h"
#include "detect-urilen.h"
#include "flow.h"
#include "flow-var.h"
#include "util-debug.h"
#include "util-unittest.h"
#include "util-spm.h"
#include "util-print.h"
#include "app-layer.h"
#include "app-layer-htp.h"
#include "detect-http-uri.h"
#include "detect-uricontent.h"
#include "stream-tcp.h"
#include "tests/detect-http-uri.c"
Include dependency graph for detect-http-uri.c:

Go to the source code of this file.

void DetectHttpUriRegister (void)
 Registration function for keywords: http_uri and http.uri. More...
 
int DetectHttpUriSetup (DetectEngineCtx *de_ctx, Signature *s, const char *str)
 this function setups the http_uri modifier keyword used in the rule More...
 

Detailed Description

Function Documentation

int DetectHttpUriSetup ( DetectEngineCtx de_ctx,
Signature s,
const char *  str 
)

this function setups the http_uri modifier keyword used in the rule

Parameters
de_ctxPointer to the Detection Engine Context
sPointer to the Signature to which the current keyword belongs
strShould hold an empty string always
Return values
0On success
-1On failure

Definition at line 174 of file detect-http-uri.c.

References ALPROTO_HTTP, DETECT_AL_HTTP_RAW_URI, DETECT_AL_HTTP_URI, DetectBufferSetActiveList(), DetectEngineContentModifierBufferSetup(), DetectSignatureSetAppProto(), DetectUrilenApplyToContent(), DetectUrilenValidateContent(), Signature_::id, InspectionBuffer::inspect, InspectionBufferApplyTransforms(), InspectionBufferGet(), InspectionBufferSetup(), HtpTxUserData_::request_uri_normalized, SCEnter, SCLogDebug, str, and unlikely.

Referenced by DetectHttpUriRegister(), and DetectUricontentRegister().

Here is the call graph for this function:

Here is the caller graph for this function: