]> 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)
commit3689b65176bb35b768a735361dc4086ef5b0b874
tree825ebee65cc163c698c708641f43af49c228ccdd
parenta986a0bb374544fe295796382a7005db3e594b27
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: 0c3cf35965be4 ("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