]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow: rearrange Flow struct to be more compact
authorVictor Julien <vjulien@oisf.net>
Sun, 29 Jan 2023 09:47:53 +0000 (10:47 +0100)
committerVictor Julien <vjulien@oisf.net>
Mon, 30 Jan 2023 10:02:21 +0000 (11:02 +0100)
src/flow.h

index 1eb08a3f356d9414c3f6f79a838ec2257ec4efd1..de8d21f97ea730759f86fe5ad1bf8a090543d5da 100644 (file)
@@ -406,17 +406,15 @@ typedef struct Flow_
     /** flow hash - the flow hash before hash table size mod. */
     uint32_t flow_hash;
 
+    /** timeout policy value in seconds to add to the lastts.tv_sec
+     *  when a packet has been received. */
+    uint32_t timeout_policy;
+
     /* time stamp of last update (last packet). Set/updated under the
      * flow and flow hash row locks, safe to read under either the
      * flow lock or flow hash row lock. */
     SCTime_t lastts;
 
-    /* end of flow "header" */
-
-    /** timeout policy value in seconds to add to the lastts.tv_sec
-     *  when a packet has been received. */
-    uint32_t timeout_policy;
-
     FlowStateType flow_state;
 
     /** flow tenant id, used to setup flow timeout and stream pseudo