]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
decode/icmpv6: improve packet vars layout
authorVictor Julien <vjulien@oisf.net>
Wed, 27 Mar 2024 11:17:15 +0000 (12:17 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 26 Apr 2024 18:59:45 +0000 (20:59 +0200)
Part of effort to make Packet more compact.

Ticket: #6938.

src/decode-icmpv6.h

index ff5359eecae4125f51916986a34f4fb352886d7a..508f854114df93087637b562ea9d63228ba4c8bd 100644 (file)
@@ -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)                                                                     \