http_method: register mpm from keyword

pull/2310/head
Victor Julien 9 years ago
parent e4ea38a8de
commit 6d0632a9c6

@ -97,9 +97,6 @@ typedef struct AppLayerMpms_ {
} AppLayerMpms;
AppLayerMpms app_mpms[] = {
{ "http_method", 0, SIG_FLAG_TOSERVER, DETECT_SM_LIST_HMDMATCH,
PrefilterTxMethodRegister, 0},
{ "file_data", 0, SIG_FLAG_TOSERVER, DETECT_SM_LIST_FILEDATA,
PrefilterTxSmtpFiledataRegister, 0}, /* smtp */
{ "file_data", 0, SIG_FLAG_TOCLIENT, DETECT_SM_LIST_FILEDATA,

@ -57,6 +57,7 @@
#include "app-layer-htp.h"
#include "detect-http-method.h"
#include "detect-engine-hmd.h"
#include "stream-tcp.h"
@ -80,6 +81,10 @@ void DetectHttpMethodRegister(void)
sigmatch_table[DETECT_AL_HTTP_METHOD].flags |= SIGMATCH_NOOPT;
sigmatch_table[DETECT_AL_HTTP_METHOD].flags |= SIGMATCH_PAYLOAD;
DetectMpmAppLayerRegister("http_method", SIG_FLAG_TOSERVER,
DETECT_SM_LIST_HMDMATCH,
PrefilterTxMethodRegister);
SCLogDebug("registering http_method rule option");
}

Loading…
Cancel
Save