mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Squashed commit of the following:
net/mld: Checksum calculation needs to know the full size of the IPv6 header, including the size of the extension headers. The payload size in the IPv64 header must include the extension headers (not considered part of the header in this case). Fixes a few additional errors in size, endian-ness and checksum calculations. Wireshark now reports the the outgoing Report has a good checksum.
net/mld/mld_query.c: Add a cast to assure that the left shift does not overflow.
This commit is contained in:
@@ -518,7 +518,7 @@ int ipv6_input(FAR struct net_driver_s *dev)
|
||||
case IP_PROTO_ICMP6: /* ICMP6 input */
|
||||
/* Forward the ICMPv6 packet */
|
||||
|
||||
icmpv6_input(dev, (FAR struct icmpv6_hdr_s *)payload);
|
||||
icmpv6_input(dev, iphdrlen);
|
||||
|
||||
#ifdef CONFIG_NET_6LOWPAN
|
||||
/* All outgoing ICMPv6 messages come through one of two mechanisms:
|
||||
|
||||
Reference in New Issue
Block a user