]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: rate-limit probes for neighbourless routes
authorSabrina Dubroca <sd@queasysnail.net>
Fri, 12 Oct 2018 14:22:47 +0000 (16:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 05:18:27 +0000 (22:18 -0700)
commit2532f83cb2570038c0e855b965a649c977677851
treee8d39c6b9c62085154052363f89245575ded7282
parent6df91bb4a270d52883a39817c346d7d0601c7683
ipv6: rate-limit probes for neighbourless routes

When commit 8029f96a15f5 ("[IPV6]: ROUTE: Add Router Reachability
Probing (RFC4191).") introduced router probing, the rt6_probe() function
required that a neighbour entry existed. This neighbour entry is used to
record the timestamp of the last probe via the ->updated field.

Later, commit 073c3f5e85f1 ("ipv6: Do not depend on rt->n in rt6_probe().")
removed the requirement for a neighbour entry. Neighbourless routes skip
the interval check and are not rate-limited.

This patch adds rate-limiting for neighbourless routes, by recording the
timestamp of the last probe in the fib6_info itself.

Fixes: 073c3f5e85f1 ("ipv6: Do not depend on rt->n in rt6_probe().")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
net/ipv6/route.c