From: Victor Julien Date: Sun, 29 Jan 2023 09:47:53 +0000 (+0100) Subject: flow: rearrange Flow struct to be more compact X-Git-Tag: suricata-7.0.0-rc1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0592e57df5c477c80fd9c7dcbc0ba5a1f1808a7f;p=thirdparty%2Fsuricata.git flow: rearrange Flow struct to be more compact --- diff --git a/src/flow.h b/src/flow.h index 1eb08a3f35..de8d21f97e 100644 --- a/src/flow.h +++ b/src/flow.h @@ -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