From: Victor Julien Date: Thu, 11 Apr 2024 14:51:12 +0000 (+0200) Subject: decode/icmpv4: put embedded pointer first X-Git-Tag: suricata-8.0.0-beta1~1366 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d89d4ceb3ca1d9a4a87c6cb9888c7d65d5b54052;p=thirdparty%2Fsuricata.git decode/icmpv4: put embedded pointer first Reduce gaps in the structure. Ticket: #6938. --- diff --git a/src/decode-icmpv4.h b/src/decode-icmpv4.h index 95f3c404e2..a87e7a09b1 100644 --- a/src/decode-icmpv4.h +++ b/src/decode-icmpv4.h @@ -181,15 +181,15 @@ typedef struct ICMPV4ExtHdr_ /* ICMPv4 vars */ typedef struct ICMPV4Vars_ { + /** Pointers to the embedded packet headers */ + IPV4Hdr *emb_ipv4h; + uint16_t id; uint16_t seq; /** Actual header length **/ uint16_t hlen; - /** Pointers to the embedded packet headers */ - IPV4Hdr *emb_ipv4h; - uint8_t emb_ip4_proto; bool emb_ports_set;