icmpv6: add NTOHL when parse ICMPV6 option MTU
@@ -408,7 +408,7 @@ void icmpv6_input(FAR struct net_driver_s *dev, unsigned int iplen)
{
FAR struct icmpv6_mtu_s *mtuopt =
(FAR struct icmpv6_mtu_s *)opt;
- dev->d_pktsize = mtuopt->mtu;
+ dev->d_pktsize = NTOHL(mtuopt->mtu);
}
break;
