wengzhe opened a new pull request, #7683:
URL: https://github.com/apache/incubator-nuttx/pull/7683
## Summary
patches included:
- net/icmpv6: Fix `ipv6->len` in icmpv6_reply
- The `ipv6->len` is the length excluding the IPv6 header, so need to be
`dev->d_len - IPv6_HDRLEN`.
- net/icmpv6: Fix `datalen` in icmpv6_reply
- The `datalen` indicates the whole len of original packet, which will
become the payload inside icmpv6 packet.
- net/icmpv6: Fix icmpv6 checksum calculation in icmpv6_reply
- The second param of icmpv6_chksum is `iplen`, which indicates `The size
of the IPv6 header`.
## Impact
- Fix `icmpv6_reply` logic
## Testing
Manually tested when trying to implement TIME_EXCEEDED reply for ttl <= 0
(will be submitted a few days later)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]