From: Victor Julien Date: Wed, 12 Jul 2023 06:08:37 +0000 (+0200) Subject: detect: more compact layout of DetectEngineCtx X-Git-Tag: suricata-7.0.0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8417d407be95e5d0de702e59c9cd1484eb68069e;p=thirdparty%2Fsuricata.git detect: more compact layout of DetectEngineCtx --- diff --git a/src/detect.h b/src/detect.h index dada307da2..0c26442ed5 100644 --- a/src/detect.h +++ b/src/detect.h @@ -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;