http_stat_code: register mpm from keyword

pull/2310/head
Victor Julien 9 years ago
parent cf96db095a
commit 644d4dc61b

@ -97,9 +97,6 @@ typedef struct AppLayerMpms_ {
} AppLayerMpms;
AppLayerMpms app_mpms[] = {
{ "http_stat_code", 0, SIG_FLAG_TOCLIENT, DETECT_SM_LIST_HSCDMATCH,
PrefilterTxHttpStatCodeRegister, 0},
{ "http_client_body", 0, SIG_FLAG_TOSERVER, DETECT_SM_LIST_HCBDMATCH,
PrefilterTxHttpRequestBodyRegister, 0},

@ -59,6 +59,7 @@
#include "app-layer-htp.h"
#include "detect-http-stat-code.h"
#include "detect-engine-hscd.h"
#include "stream-tcp-private.h"
#include "stream-tcp.h"
@ -85,6 +86,10 @@ void DetectHttpStatCodeRegister (void)
sigmatch_table[DETECT_AL_HTTP_STAT_CODE].flags |= SIGMATCH_NOOPT;
sigmatch_table[DETECT_AL_HTTP_STAT_CODE].flags |= SIGMATCH_PAYLOAD;
DetectMpmAppLayerRegister("http_stat_code", SIG_FLAG_TOCLIENT,
DETECT_SM_LIST_HSCDMATCH,
PrefilterTxHttpStatCodeRegister);
}
/**

Loading…
Cancel
Save