This is an automated email from the ASF dual-hosted git repository. pkarashchenko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit cc421e43e4b7bb1b38dfe269a4dd1d029c2a1c8d Author: zhanghongyu <zhanghon...@xiaomi.com> AuthorDate: Tue Aug 23 23:21:20 2022 +0800 icmpv6: add NTOHL when parse ICMPV6 option MTU Signed-off-by: zhanghongyu <zhanghon...@xiaomi.com> Signed-off-by: chao.an <anc...@xiaomi.com> --- net/icmpv6/icmpv6_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/icmpv6/icmpv6_input.c b/net/icmpv6/icmpv6_input.c index 1408f1d82a..62ef36068b 100644 --- a/net/icmpv6/icmpv6_input.c +++ b/net/icmpv6/icmpv6_input.c @@ -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;