From 760281207ede6225971ef39ce42f1cc56d1d2af0 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Thu, 13 Oct 2016 16:30:32 +0000 Subject: [PATCH] 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. --- src/core/ipv6/mld6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ipv6/mld6.c b/src/core/ipv6/mld6.c index 2ebcff32..0cd0078b 100644 --- a/src/core/ipv6/mld6.c +++ b/src/core/ipv6/mld6.c @@ -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)); #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, src_addr, &(group->group_address)); }