mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
mld6: fix conditional checksumming
The mld_group structure no longer has a 'netif' field, as such structures are now linked from the corresponding netif structure. For conditional checksumming, use the calling function's netif reference instead.
This commit is contained in:
parent
20fde0be6c
commit
760281207e
@ -564,7 +564,7 @@ mld6_send(struct netif *netif, struct mld_group *group, u8_t type)
|
|||||||
ip6_addr_set(&(mld_hdr->multicast_address), &(group->group_address));
|
ip6_addr_set(&(mld_hdr->multicast_address), &(group->group_address));
|
||||||
|
|
||||||
#if CHECKSUM_GEN_ICMP6
|
#if CHECKSUM_GEN_ICMP6
|
||||||
IF__NETIF_CHECKSUM_ENABLED(group->netif, NETIF_CHECKSUM_GEN_ICMP6) {
|
IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICMP6) {
|
||||||
mld_hdr->chksum = ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->len,
|
mld_hdr->chksum = ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->len,
|
||||||
src_addr, &(group->group_address));
|
src_addr, &(group->group_address));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user