From: Victor Julien Date: Tue, 3 Aug 2021 10:21:31 +0000 (+0200) Subject: http/range: optimize struct layout X-Git-Tag: suricata-7.0.0-beta1~1363 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ffc9622b35f321ac270957df36919cd79f066c5;p=thirdparty%2Fsuricata.git http/range: optimize struct layout --- diff --git a/src/app-layer-htp-range.h b/src/app-layer-htp-range.h index 83907d6a4d..039a72745b 100644 --- a/src/app-layer-htp-range.h +++ b/src/app-layer-htp-range.h @@ -55,18 +55,18 @@ typedef struct HttpRangeContainerFile { uint8_t *key; /** key length */ uint32_t len; - /** pointer to hashtable data, for use count */ - THashData *hdata; /** expire time in epoch */ uint32_t expire; + /** pointer to hashtable data, for use count */ + THashData *hdata; /** total epxected size of the file in ranges */ uint64_t totalsize; - /** file flags */ - uint16_t flags; /** file container, with only one file */ FileContainer *files; /** red and black tree list of ranges which came out of order */ struct HTTP_RANGES fragment_tree; + /** file flags */ + uint16_t flags; /** wether a range file is currently appending */ bool appending; /** mutex */