http_stat_msg: register mpm from keyword

pull/2310/head
Victor Julien 9 years ago
parent 43b281a510
commit cf96db095a

@ -97,8 +97,6 @@ typedef struct AppLayerMpms_ {
} AppLayerMpms;
AppLayerMpms app_mpms[] = {
{ "http_stat_msg", 0, SIG_FLAG_TOCLIENT, DETECT_SM_LIST_HSMDMATCH,
PrefilterTxHttpStatMsgRegister, 0},
{ "http_stat_code", 0, SIG_FLAG_TOCLIENT, DETECT_SM_LIST_HSCDMATCH,
PrefilterTxHttpStatCodeRegister, 0},

@ -59,6 +59,7 @@
#include "app-layer-htp.h"
#include "detect-http-stat-msg.h"
#include "detect-engine-hsmd.h"
#include "stream-tcp-private.h"
#include "stream-tcp.h"
@ -85,6 +86,10 @@ void DetectHttpStatMsgRegister (void)
sigmatch_table[DETECT_AL_HTTP_STAT_MSG].flags |= SIGMATCH_NOOPT;
sigmatch_table[DETECT_AL_HTTP_STAT_MSG].flags |= SIGMATCH_PAYLOAD;
DetectMpmAppLayerRegister("http_stat_msg", SIG_FLAG_TOCLIENT,
DETECT_SM_LIST_HSMDMATCH,
PrefilterTxHttpStatMsgRegister);
}
/**

Loading…
Cancel
Save