From: Victor Julien Date: Wed, 27 Mar 2024 11:17:15 +0000 (+0100) Subject: decode/icmpv6: improve packet vars layout X-Git-Tag: suricata-8.0.0-beta1~1388 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=769b020a555cecbeead2aba28445b294bc09dcfb;p=thirdparty%2Fsuricata.git decode/icmpv6: improve packet vars layout Part of effort to make Packet more compact. Ticket: #6938. --- diff --git a/src/decode-icmpv6.h b/src/decode-icmpv6.h index ff5359eeca..508f854114 100644 --- a/src/decode-icmpv6.h +++ b/src/decode-icmpv6.h @@ -156,9 +156,6 @@ typedef struct ICMPV6Vars_ { uint16_t seq; uint32_t mtu; - /** Pointers to the embedded packet headers */ - IPV6Hdr *emb_ipv6h; - uint8_t emb_ip6_proto_next; bool emb_ports_set; @@ -166,6 +163,8 @@ typedef struct ICMPV6Vars_ { uint16_t emb_sport; uint16_t emb_dport; + /** Pointers to the embedded packet headers */ + IPV6Hdr *emb_ipv6h; } ICMPV6Vars; #define CLEAR_ICMPV6_PACKET(p) \