You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "pkarashchenko (via GitHub)" <gi...@apache.org> on 2023/03/10 08:34:08 UTC
[GitHub] [nuttx] pkarashchenko commented on a diff in pull request #8785: net/icmpv6: align structs to 2 bytes.
pkarashchenko commented on code in PR #8785:
URL: https://github.com/apache/nuttx/pull/8785#discussion_r1132084108
##########
net/icmpv6/icmpv6_input.c:
##########
@@ -353,7 +353,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 = NTOHL(mtuopt->mtu) + dev->d_llhdrlen;
+ dev->d_pktsize = NTOHS(mtuopt->mtu[1]) + dev->d_llhdrlen;
Review Comment:
what about `mtu[0]`? Is it always 0?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org