detect: rename SignatureNonMpmStore

New name is SignatureNonPrefilterStore to reflect that it's not just
about MPM anymore.
pull/2310/head
Victor Julien 9 years ago
parent 17bc0299fe
commit 3dad824fb2

@ -710,15 +710,15 @@ int SigGroupHeadBuildNonPrefilterArray(DetectEngineCtx *de_ctx, SigGroupHead *sg
}
if (non_pf > 0) {
sgh->non_pf_other_store_array = SCMalloc(non_pf * sizeof(SignatureNonMpmStore));
sgh->non_pf_other_store_array = SCMalloc(non_pf * sizeof(SignatureNonPrefilterStore));
BUG_ON(sgh->non_pf_other_store_array == NULL);
memset(sgh->non_pf_other_store_array, 0, non_pf * sizeof(SignatureNonMpmStore));
memset(sgh->non_pf_other_store_array, 0, non_pf * sizeof(SignatureNonPrefilterStore));
}
if (non_pf_syn > 0) {
sgh->non_pf_syn_store_array = SCMalloc(non_pf_syn * sizeof(SignatureNonMpmStore));
sgh->non_pf_syn_store_array = SCMalloc(non_pf_syn * sizeof(SignatureNonPrefilterStore));
BUG_ON(sgh->non_pf_syn_store_array == NULL);
memset(sgh->non_pf_syn_store_array, 0, non_pf_syn * sizeof(SignatureNonMpmStore));
memset(sgh->non_pf_syn_store_array, 0, non_pf_syn * sizeof(SignatureNonPrefilterStore));
}
for (sig = 0; sig < sgh->sig_cnt; sig++) {

@ -721,10 +721,10 @@ typedef struct FiledataReassembledBody_ {
#define DETECT_FILESTORE_MAX 15
typedef struct SignatureNonMpmStore_ {
typedef struct SignatureNonPrefilterStore_ {
SigIntId id;
SignatureMask mask;
} SignatureNonMpmStore;
} SignatureNonPrefilterStore;
/**
* Detection engine thread data.
@ -823,7 +823,7 @@ typedef struct DetectEngineThreadCtx_ {
struct SigGroupHead_ *sgh;
SignatureNonMpmStore *non_pf_store_ptr;
SignatureNonPrefilterStore *non_pf_store_ptr;
uint32_t non_pf_store_cnt;
/** pointer to the current mpm ctx that is stored
@ -1000,9 +1000,9 @@ typedef struct SigGroupHead_ {
/* non prefilter list excluding SYN rules */
uint32_t non_pf_other_store_cnt;
uint32_t non_pf_syn_store_cnt;
SignatureNonMpmStore *non_pf_other_store_array; // size is non_mpm_store_cnt * sizeof(SignatureNonMpmStore)
SignatureNonPrefilterStore *non_pf_other_store_array; // size is non_mpm_store_cnt * sizeof(SignatureNonPrefilterStore)
/* non mpm list including SYN rules */
SignatureNonMpmStore *non_pf_syn_store_array; // size is non_mpm_syn_store_cnt * sizeof(SignatureNonMpmStore)
SignatureNonPrefilterStore *non_pf_syn_store_array; // size is non_mpm_syn_store_cnt * sizeof(SignatureNonPrefilterStore)
/** the number of signatures in this sgh that have the filestore keyword
* set. */

Loading…
Cancel
Save