From 91695c81aacca8db1b9035be73b3b7d0e4f5353b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 17 Sep 2016 12:22:59 +0200 Subject: [PATCH] http_client_body: register mpm from keyword --- src/detect-engine-mpm.c | 3 --- src/detect-http-client-body.c | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index ba1147166c..5f4cac6f8a 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_client_body", 0, SIG_FLAG_TOSERVER, DETECT_SM_LIST_HCBDMATCH, - PrefilterTxHttpRequestBodyRegister, 0}, - { "http_host", 0, SIG_FLAG_TOSERVER, DETECT_SM_LIST_HHHDMATCH, PrefilterTxHostnameRegister, 0}, { "http_raw_host", 0, SIG_FLAG_TOSERVER, DETECT_SM_LIST_HRHHDMATCH, diff --git a/src/detect-http-client-body.c b/src/detect-http-client-body.c index 4497836ffa..8b74276a9d 100644 --- a/src/detect-http-client-body.c +++ b/src/detect-http-client-body.c @@ -55,6 +55,7 @@ #include "app-layer-parser.h" #include "app-layer-htp.h" #include "detect-http-client-body.h" +#include "detect-engine-hcbd.h" #include "stream-tcp.h" int DetectHttpClientBodySetup(DetectEngineCtx *, Signature *, char *); @@ -77,6 +78,11 @@ void DetectHttpClientBodyRegister(void) sigmatch_table[DETECT_AL_HTTP_CLIENT_BODY].flags |= SIGMATCH_NOOPT ; sigmatch_table[DETECT_AL_HTTP_CLIENT_BODY].flags |= SIGMATCH_PAYLOAD ; + + DetectMpmAppLayerRegister("http_client_body", SIG_FLAG_TOSERVER, + DETECT_SM_LIST_HCBDMATCH, + PrefilterTxHttpRequestBodyRegister); + } static void DetectHttpClientBodySetupCallback(Signature *s)