]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Make 'addrconf_rs_timer' send Router Solicitations (and re-arm itself) if Route...
authorShmulik Ladkani <shmulik.ladkani@gmail.com>
Sun, 2 Dec 2012 01:44:53 +0000 (01:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2012 18:59:57 +0000 (13:59 -0500)
commitdf63f23539a8d51c0f41482579cfbe107c8578e6
tree8469098d33a0786b3d1f016f1206d54028738683
parentad0e90a3fb18a26710231f4c3c65449d2d488773
ipv6: Make 'addrconf_rs_timer' send Router Solicitations (and re-arm itself) if Router Advertisements are accepted

As of 056340b [ipv6: Send ICMPv6 RSes only when RAs are accepted],
Router Solicitations are sent whenever kernel accepts Router
Advertisements on the interface.

However, this logic isn't reflected in 'addrconf_rs_timer'.

The timer fails to issue subsequent RS messages (and fails to re-arm
itself) if forwarding is enabled and the special hybrid mode is
enabled (accept_ra=2).

Fix the condition determining whether next RS should be sent, by using
'ipv6_accept_ra()'.

Reported-by: Ami Koren <amikoren@yahoo.com>
Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c