mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
icmpv6: add NTOHL when parse ICMPV6 option MTU
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com> Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
00cf3e559d
commit
cc421e43e4
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user