http_raw_host: register mpm from keyword

pull/2310/head
Victor Julien 9 years ago
parent b5cd4889ae
commit 74661449e0

@ -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,

@ -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;
}

Loading…
Cancel
Save