]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: optimize sgh layout
authorVictor Julien <victor@inliniac.net>
Wed, 21 Oct 2015 06:35:24 +0000 (08:35 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 5 Apr 2016 07:37:41 +0000 (09:37 +0200)
src/detect.h

index 721cd8a29ac9587e59737828a77e66a0c3c6786a..808fd69820dc758c3278d81077062831ff180b85 100644 (file)
@@ -967,10 +967,10 @@ typedef struct SigGroupHead_ {
 
     /* non mpm list excluding SYN rules */
     uint32_t non_mpm_other_store_cnt;
+    uint32_t non_mpm_syn_store_cnt;
     SignatureNonMpmStore *non_mpm_other_store_array; // size is non_mpm_store_cnt * sizeof(SignatureNonMpmStore)
     /* non mpm list including SYN rules */
     SignatureNonMpmStore *non_mpm_syn_store_array; // size is non_mpm_syn_store_cnt * sizeof(SignatureNonMpmStore)
-    uint32_t non_mpm_syn_store_cnt;
 
     /** the number of signatures in this sgh that have the filestore keyword
      *  set. */