]> git.baikalelectronics.ru Git - kernel.git/commit
igmp: fix incorrect unsolicit report count after link down and up
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 29 Aug 2018 10:06:10 +0000 (18:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Sep 2018 20:39:37 +0000 (13:39 -0700)
commitf14b882ad027f33007b75435ff691dd4c90ec8fe
tree825ebee65cc163c698c708641f43af49c228ccdd
parentbae5376a4fbef8857714efe5aa3232032bd5ea0e
igmp: fix incorrect unsolicit report count after link down and up

After link down and up, i.e. when call ip_mc_up(), we doesn't init
im->unsolicit_count. So after igmp_timer_expire(), we will not start
timer again and only send one unsolicit report at last.

Fix it by initializing im->unsolicit_count in igmp_group_added(), so
we can respect igmp robustness value.

Fixes: cb3bac8948c0c ("igmp: do not remove igmp souce list info when set link down")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/igmp.c