From 5ffc9622b35f321ac270957df36919cd79f066c5 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 3 Aug 2021 12:21:31 +0200 Subject: [PATCH] http/range: optimize struct layout --- src/app-layer-htp-range.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 */