OSDN Git Service

ipv6: mcast: fix unsolicited report interval after receiving querys
authorHangbin Liu <liuhangbin@gmail.com>
Thu, 21 Jun 2018 11:49:36 +0000 (19:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:26:55 +0000 (13:26 +0200)
commit55989af9dfa0ce11ef9694899e649fdf38b9aab2
tree8991217e30bc4be91a71dee7a555ed5552c263fe
parentc40dc96f7f7e29d7c1e520c46c87178c2d4b1dcc
ipv6: mcast: fix unsolicited report interval after receiving querys

[ Upstream commit 6c6da92808442908287fae8ebb0ca041a52469f4 ]

After recieving MLD querys, we update idev->mc_maxdelay with max_delay
from query header. This make the later unsolicited reports have the same
interval with mc_maxdelay, which means we may send unsolicited reports with
long interval time instead of default configured interval time.

Also as we will not call ipv6_mc_reset() after device up. This issue will
be there even after leave the group and join other groups.

Fixes: fc4eba58b4c14 ("ipv6: make unsolicited report intervals configurable for mld")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/mcast.c