]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: move DetectTransaction to header its used in
authorVictor Julien <vjulien@oisf.net>
Thu, 15 Sep 2022 18:04:34 +0000 (20:04 +0200)
committerVictor Julien <vjulien@oisf.net>
Sat, 1 Oct 2022 18:14:03 +0000 (20:14 +0200)
src/detect-engine-prefilter.h
src/detect-engine-state.h

index 39ac66fb833bb2dc67eb7cfd19e94b8da4ee0a51..44344468aec1c14ea565e7babd06480fc085bdf9 100644 (file)
 
 #include "detect-engine-state.h"
 
+// TODO
+typedef struct DetectTransaction_ {
+    void *tx_ptr;
+    const uint64_t tx_id;
+    struct AppLayerTxData *tx_data_ptr;
+    DetectEngineStateDirection *de_state;
+    const uint64_t detect_flags; /* detect flags get/set from/to applayer */
+    uint64_t prefilter_flags; /* prefilter flags for direction, to be updated by prefilter code */
+    const uint64_t
+            prefilter_flags_orig; /* prefilter flags for direction, before prefilter has run */
+    const int tx_progress;
+    const int tx_end_state;
+} DetectTransaction;
+
 typedef struct PrefilterStore_ {
     const char *name;
     void (*FreeFunc)(void *);
index 3363e2dd397fd4bae4ff623fb45f7fcc77821a1d..3dc86847aa23135004fde08df398bc9d3df376ec 100644 (file)
@@ -94,19 +94,6 @@ typedef struct DetectEngineState_ {
     DetectEngineStateDirection dir_state[2];
 } DetectEngineState;
 
-// TODO
-typedef struct DetectTransaction_ {
-    void *tx_ptr;
-    const uint64_t tx_id;
-    struct AppLayerTxData *tx_data_ptr;
-    DetectEngineStateDirection *de_state;
-    const uint64_t detect_flags;            /* detect flags get/set from/to applayer */
-    uint64_t prefilter_flags;               /* prefilter flags for direction, to be updated by prefilter code */
-    const uint64_t prefilter_flags_orig;    /* prefilter flags for direction, before prefilter has run */
-    const int tx_progress;
-    const int tx_end_state;
-} DetectTransaction;
-
 /**
  * \brief Alloc a DetectEngineState object.
  *