From b5cd4889aed4a126e92dd35d7cb8931a869a3f43 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 17 Sep 2016 12:26:17 +0200 Subject: [PATCH] http_host: register mpm from keyword --- src/detect-engine-mpm.c | 2 -- src/detect-http-hh.c | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index 5f4cac6f8a..f1e75807cb 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -97,8 +97,6 @@ typedef struct AppLayerMpms_ { } AppLayerMpms; AppLayerMpms app_mpms[] = { - { "http_host", 0, SIG_FLAG_TOSERVER, DETECT_SM_LIST_HHHDMATCH, - PrefilterTxHostnameRegister, 0}, { "http_raw_host", 0, SIG_FLAG_TOSERVER, DETECT_SM_LIST_HRHHDMATCH, PrefilterTxHostnameRawRegister, 0}, diff --git a/src/detect-http-hh.c b/src/detect-http-hh.c index f8c3387974..c2c99055a8 100644 --- a/src/detect-http-hh.c +++ b/src/detect-http-hh.c @@ -57,6 +57,7 @@ #include "app-layer-htp.h" #include "stream-tcp.h" #include "detect-http-hh.h" +#include "detect-engine-hhhd.h" int DetectHttpHHSetup(DetectEngineCtx *, Signature *, char *); void DetectHttpHHRegisterTests(void); @@ -78,6 +79,9 @@ void DetectHttpHHRegister(void) sigmatch_table[DETECT_AL_HTTP_HOST].flags |= SIGMATCH_NOOPT ; sigmatch_table[DETECT_AL_HTTP_HOST].flags |= SIGMATCH_PAYLOAD ; + DetectMpmAppLayerRegister("http_host", SIG_FLAG_TOSERVER, + DETECT_SM_LIST_HHHDMATCH, + PrefilterTxHostnameRegister); return; }