forked from nuttx/nuttx-update
net/igmp/igmp_send.c: Fix incoming IGMP checksum calculation
This commit is contained in:
parent
18376a124a
commit
dfa0574e7b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue