[BIRD 2.0.x] Netlink: ignore dead routes

Ondrej Zajicek santiago at crfreenet.org
Mon Oct 26 18:13:05 CET 2020


On Thu, Oct 22, 2020 at 04:16:36PM +0200, Vincent Bernat wrote:
> With net.ipv4.conf.XXX.ignore_routes_with_linkdown sysctl, a user can
> ensure the kernel does not use a route whose target interface is down.
> The route is marked with a "dead"/RTNH_F_DEAD flag. Currently, BIRD
> still uses and distributes this route. This patch just ignores such a
> route.
> 
> This patch could be backported to 1.6.x.

Hi

Would not be better to convert netlink message with RTNH_F_DEAD to a
withdraw? I guess that when a route became marked as dead, kerne sends
asynchronous notification about that. This patch would just wait for
a periodic scan to remove the route.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."


More information about the Bird-users mailing list