]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
decode/icmpv4: put embedded pointer first
authorVictor Julien <vjulien@oisf.net>
Thu, 11 Apr 2024 14:51:12 +0000 (16:51 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 26 Apr 2024 18:59:45 +0000 (20:59 +0200)
Reduce gaps in the structure.

Ticket: #6938.

src/decode-icmpv4.h

index 95f3c404e2edfcc1f0d2397cf694bbb4dcb719f5..a87e7a09b1e545cc6768b72dbaa8bc428b2f0d9e 100644 (file)
@@ -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;