1
0
Fork 0
forked from nuttx/nuttx-update

net/igmp/igmp_send.c: Fix incoming IGMP checksum calculation

This commit is contained in:
Louis Mayencourt 2017-09-25 06:55:01 -06:00 committed by Gregory Nutt
parent 18376a124a
commit dfa0574e7b

View file

@ -165,7 +165,7 @@ void igmp_send(FAR struct net_driver_s *dev, FAR struct igmp_group_s *group,
/* Calculate the IGMP checksum. */
IGMPBUF->chksum = 0;
IGMPBUF->chksum = ~igmp_chksum(&IGMPBUF->type, IPIGMP_HDRLEN);
IGMPBUF->chksum = ~igmp_chksum(&IGMPBUF->type, IGMP_HDRLEN);
IGMP_STATINCR(g_netstats.igmp.poll_send);
IGMP_STATINCR(g_netstats.ipv4.sent);