]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: move includes/declarations closer to use
authorVictor Julien <victor@inliniac.net>
Fri, 19 Jul 2019 11:48:33 +0000 (13:48 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 19 Jul 2019 14:09:37 +0000 (16:09 +0200)
src/detect.h

index 3bf93273c1897eca17a61149c8844936c5d36f95..260b888eb8b33eef038dc23f00b0ab8122bc5415 100644 (file)
@@ -153,8 +153,6 @@ typedef struct DetectAddressHead_ {
 } DetectAddressHead;
 
 
-#include "detect-threshold.h"
-
 typedef struct DetectMatchAddressIPv4_ {
     uint32_t ip;    /**< address in host order, start of range */
     uint32_t ip2;   /**< address in host order, end of range */
@@ -697,12 +695,7 @@ typedef struct DetectEngineLookupFlow_ {
     struct SigGroupHead_ *sgh[256];
 } DetectEngineLookupFlow;
 
-/* Flow status
- *
- * to server
- * to client
- */
-#define FLOW_STATES 2
+#include "detect-threshold.h"
 
 /** \brief threshold ctx */
 typedef struct ThresholdCtx_    {
@@ -753,6 +746,12 @@ enum DetectEngineType
     DETECT_ENGINE_TYPE_TENANT = 3,
 };
 
+/* Flow states:
+ *  toserver
+ *  toclient
+ */
+#define FLOW_STATES 2
+
 /** \brief main detection engine ctx */
 typedef struct DetectEngineCtx_ {
     uint8_t flags;