Commit fabe5553 authored by David Stevens's avatar David Stevens Committed by David S. Miller

[IPV4]: Do not sent IGMP leave messages unless IFF_UP.

parent 70948683
...@@ -1060,17 +1060,19 @@ static void igmp_group_dropped(struct ip_mc_list *im) ...@@ -1060,17 +1060,19 @@ static void igmp_group_dropped(struct ip_mc_list *im)
reporter = im->reporter; reporter = im->reporter;
igmp_stop_timer(im); igmp_stop_timer(im);
if (IGMP_V1_SEEN(in_dev)) if (in_dev->dev->flags & IFF_UP) {
goto done; if (IGMP_V1_SEEN(in_dev))
if (IGMP_V2_SEEN(in_dev)) { goto done;
if (reporter) if (IGMP_V2_SEEN(in_dev)) {
igmp_send_report(in_dev, im, IGMP_HOST_LEAVE_MESSAGE); if (reporter)
goto done; igmp_send_report(in_dev, im, IGMP_HOST_LEAVE_MESSAGE);
} goto done;
/* IGMPv3 */ }
igmpv3_add_delrec(in_dev, im); /* IGMPv3 */
igmpv3_add_delrec(in_dev, im);
igmp_ifc_event(in_dev); igmp_ifc_event(in_dev);
}
done: done:
#endif #endif
ip_mc_clear_src(im); ip_mc_clear_src(im);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment