Fix bug #50220 (mld6_leavegroup does not send ICMP6_TYPE_MLD, even if last reporter)

Signed-off-by: sg <goldsimon@gmx.de>
(cherry picked from commit 819bfbb943)
This commit is contained in:
Luc Revardel 2017-02-08 22:29:32 +01:00 committed by goldsimon
parent d471e5f89e
commit dc38e21a70

View File

@ -573,6 +573,11 @@ mld6_send(struct netif *netif, struct mld_group *group, u8_t type)
/* Add hop-by-hop headers options: router alert with MLD value. */
ip6_options_add_hbh_ra(p, IP6_NEXTH_ICMP6, IP6_ROUTER_ALERT_VALUE_MLD);
if (type == ICMP6_TYPE_MLR) {
/* Remember we were the last to report */
group->last_reporter_flag = 1;
}
/* Send the packet out. */
MLD6_STATS_INC(mld6.xmit);
ip6_output_if(p, (ip6_addr_isany(src_addr)) ? NULL : src_addr, &(group->group_address),