]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
http/range: optimize struct layout
authorVictor Julien <victor@inliniac.net>
Tue, 3 Aug 2021 10:21:31 +0000 (12:21 +0200)
committerPhilippe Antoine <contact@catenacyber.fr>
Fri, 24 Sep 2021 13:22:09 +0000 (15:22 +0200)
src/app-layer-htp-range.h

index 83907d6a4d0b401681f15d4376340558ea459d49..039a72745b36bed776ee9145fbb81e5ffdd423ba 100644 (file)
@@ -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 */