From 20afd63cbd46931d38c236ffe02dc17bc17a80fc Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 9 Feb 2026 09:34:18 +0100 Subject: [PATCH] flow: move flow_hash field to header It won't get updated after initial set. --- src/flow.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/flow.h b/src/flow.h index 7cb5ee40c4..df1a09fe70 100644 --- a/src/flow.h +++ b/src/flow.h @@ -384,13 +384,14 @@ typedef struct Flow_ /** Thread ID for the stream/detect portion of this flow */ FlowThreadId thread_id[2]; + /** flow hash - the flow hash before hash table size mod. Used for calculating + * the flow_id. */ + uint32_t flow_hash; + struct Flow_ *next; /* (hash) list next */ /** Incoming interface */ struct LiveDevice_ *livedev; - /** flow hash - the flow hash before hash table size mod. */ - uint32_t flow_hash; - /** timeout in seconds by policy, add to Flow::lastts to get actual time this times out. * Ignored in emergency mode. */ uint32_t timeout_policy;