]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: more compact layout of DetectEngineCtx
authorVictor Julien <vjulien@oisf.net>
Wed, 12 Jul 2023 06:08:37 +0000 (08:08 +0200)
committerVictor Julien <vjulien@oisf.net>
Thu, 13 Jul 2023 04:49:26 +0000 (06:49 +0200)
src/detect.h

index dada307da23c8dd8bb245a88549df33c0f08ca23..0c26442ed523d777b99ccbaed27269488fb764d9 100644 (file)
@@ -825,6 +825,9 @@ enum DetectEngineType
 /** \brief main detection engine ctx */
 typedef struct DetectEngineCtx_ {
     bool failure_fatal;
+    uint8_t flags;       /**< only DE_QUIET */
+    uint8_t mpm_matcher; /**< mpm matcher this ctx uses */
+    uint8_t spm_matcher; /**< spm matcher this ctx uses */
 
     int tenant_id;
 
@@ -870,10 +873,6 @@ typedef struct DetectEngineCtx_ {
     DetectEngineIPOnlyCtx io_ctx;
     ThresholdCtx ths_ctx;
 
-    uint8_t flags;        /**< only DE_QUIET */
-    uint8_t mpm_matcher;  /**< mpm matcher this ctx uses */
-    uint8_t spm_matcher;  /**< spm matcher this ctx uses */
-
     /* maximum recursion depth for content inspection */
     int inspection_recursion_limit;