]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
decode: fix endianness for ICMPv6 MTU
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 28 Feb 2020 14:08:33 +0000 (15:08 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 19 Mar 2020 08:29:26 +0000 (09:29 +0100)
src/decode-icmpv6.h

index 07bc957cf22b7d5df3ff4b3923800cfa2a372b08..2da2767ec4c280fed150503a27cbb6f52165a0e9 100644 (file)
 /** macro for icmpv6 "error_ptr" access */
 #define ICMPV6_GET_ERROR_PTR(p)    (p)->icmpv6h->icmpv6b.icmpv6e.error_ptr
 /** macro for icmpv6 "mtu" access */
-#define ICMPV6_GET_MTU(p)          (p)->icmpv6h->icmpv6b.icmpv6e.mtu
+#define ICMPV6_GET_MTU(p)          SCNtohl((p)->icmpv6h->icmpv6b.icmpv6e.mtu)
 
 /** macro for icmpv6 embedded "protocol" access */
 #define ICMPV6_GET_EMB_PROTO(p)    (p)->icmpv6vars.emb_ip6_proto_next