From: Victor Julien Date: Wed, 27 Mar 2024 08:56:16 +0000 (+0100) Subject: decode/tcp: minor struct layout optimization X-Git-Tag: suricata-8.0.0-beta1~1396 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81c4b10dc856accedb5c3082e8f3f9e2310283d9;p=thirdparty%2Fsuricata.git decode/tcp: minor struct layout optimization Part of effort to make Packet more compact. Ticket: #6938. --- diff --git a/src/decode-tcp.h b/src/decode-tcp.h index 66189b1083..cf7a25086c 100644 --- a/src/decode-tcp.h +++ b/src/decode-tcp.h @@ -160,10 +160,10 @@ typedef struct TCPVars_ bool tfo_set; uint8_t wscale_set : 1; uint8_t wscale : 4; - uint16_t mss; /**< MSS value in host byte order */ + uint16_t mss; /**< MSS value in host byte order */ + uint16_t stream_pkt_flags; uint32_t ts_val; /* host-order */ uint32_t ts_ecr; /* host-order */ - uint16_t stream_pkt_flags; TCPOpt sack; } TCPVars;