suricata
|
Go to the source code of this file.
Functions | |
int | DetectHttpUriSetup (DetectEngineCtx *, Signature *, const char *) |
this function setups the http_uri modifier keyword used in the rule More... | |
void | DetectHttpUriRegister (void) |
Registration function for keywords: http_uri and http.uri. More... | |
Definition in file detect-http-uri.h.
void DetectHttpUriRegister | ( | void | ) |
Registration function for keywords: http_uri and http.uri.
Definition at line 88 of file detect-http-uri.c.
References SigTableElmt_::alias, ALPROTO_HTTP, SigTableElmt_::alternative, SigTableElmt_::desc, DETECT_AL_HTTP_RAW_URI, DETECT_AL_HTTP_URI, DETECT_HTTP_URI, DETECT_HTTP_URI_RAW, DetectAppLayerInspectEngineRegister2(), DetectAppLayerMpmRegister2(), DetectBufferTypeGetByName(), DetectBufferTypeRegisterSetupCallback(), DetectBufferTypeRegisterValidateCallback(), DetectBufferTypeSetDescriptionByName(), DetectEngineInspectBufferGeneric(), DetectHttpUriSetup(), DOC_URL, DOC_VERSION, SigTableElmt_::flags, SigTableElmt_::name, PrefilterGenericMpmRegister(), SigTableElmt_::RegisterTests, SigTableElmt_::Setup, SIG_FLAG_TOSERVER, SIGMATCH_INFO_CONTENT_MODIFIER, SIGMATCH_INFO_STICKY_BUFFER, SIGMATCH_NOOPT, sigmatch_table, and SigTableElmt_::url.
Referenced by SigTableSetup().
int DetectHttpUriSetup | ( | DetectEngineCtx * | de_ctx, |
Signature * | s, | ||
const char * | str | ||
) |
this function setups the http_uri modifier keyword used in the rule
de_ctx | Pointer to the Detection Engine Context |
s | Pointer to the Signature to which the current keyword belongs |
str | Should hold an empty string always |
0 | On success |
-1 | On 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().