From 74661449e0b7019cabe851fed80759673fc083d9 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 17 Sep 2016 13:01:32 +0200 Subject: [PATCH] http_raw_host: register mpm from keyword --- src/detect-engine-mpm.c | 3 --- src/detect-http-hrh.c | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index f1e75807cb..acb2b9d689 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -97,9 +97,6 @@ typedef struct AppLayerMpms_ { } AppLayerMpms; AppLayerMpms app_mpms[] = { - { "http_raw_host", 0, SIG_FLAG_TOSERVER, DETECT_SM_LIST_HRHHDMATCH, - PrefilterTxHostnameRawRegister, 0}, - { "http_cookie", 0, SIG_FLAG_TOSERVER, DETECT_SM_LIST_HCDMATCH, PrefilterTxRequestCookieRegister, 0}, { "http_cookie", 0, SIG_FLAG_TOCLIENT, DETECT_SM_LIST_HCDMATCH, diff --git a/src/detect-http-hrh.c b/src/detect-http-hrh.c index 0243885d05..c5bbaa7aa6 100644 --- a/src/detect-http-hrh.c +++ b/src/detect-http-hrh.c @@ -57,6 +57,7 @@ #include "app-layer-htp.h" #include "stream-tcp.h" #include "detect-http-hrh.h" +#include "detect-engine-hrhhd.h" int DetectHttpHRHSetup(DetectEngineCtx *, Signature *, char *); void DetectHttpHRHRegisterTests(void); @@ -78,6 +79,10 @@ void DetectHttpHRHRegister(void) sigmatch_table[DETECT_AL_HTTP_RAW_HOST].flags |= SIGMATCH_NOOPT ; sigmatch_table[DETECT_AL_HTTP_RAW_HOST].flags |= SIGMATCH_PAYLOAD ; + DetectMpmAppLayerRegister("http_raw_host", SIG_FLAG_TOSERVER, + DETECT_SM_LIST_HRHHDMATCH, + PrefilterTxHostnameRawRegister); + return; }