From: Philippe Antoine Date: Fri, 28 Feb 2020 14:08:33 +0000 (+0100) Subject: decode: fix endianness for ICMPv6 MTU X-Git-Tag: suricata-6.0.0-beta1~632 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d04d69acbbc691aa65c6fbf9a19defe572960673;p=thirdparty%2Fsuricata.git decode: fix endianness for ICMPv6 MTU --- diff --git a/src/decode-icmpv6.h b/src/decode-icmpv6.h index 07bc957cf2..2da2767ec4 100644 --- a/src/decode-icmpv6.h +++ b/src/decode-icmpv6.h @@ -118,7 +118,7 @@ /** 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