]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dns: shrink per flow state by improving layout 3493/head
authorVictor Julien <victor@inliniac.net>
Sun, 30 Sep 2018 07:37:24 +0000 (09:37 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 2 Oct 2018 12:24:16 +0000 (14:24 +0200)
src/app-layer-dns-common.h

index 699e99a92eb7acc3464a8e9df5a56e451ed106f2..65d40cdabf05db1069132b3a7d65fc9a8e13e614 100644 (file)
@@ -238,9 +238,9 @@ typedef struct DNSState_ {
     /* used by TCP only */
     uint16_t offset;
     uint16_t record_len;
-    uint8_t *buffer;
     uint8_t gap_ts;               /**< Flag set when a gap has occurred. */
     uint8_t gap_tc;               /**< Flag set when a gap has occurred. */
+    uint8_t *buffer;
 } DNSState;
 
 #define DNS_CONFIG_DEFAULT_REQUEST_FLOOD 500