]> git.ipfire.org Git - thirdparty/bird.git/commit
Netlink: Ignore dead routes
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 14 Jan 2021 00:51:09 +0000 (01:51 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 14 Jan 2021 01:01:07 +0000 (02:01 +0100)
commitdf83f626973fda1e67769d295c47d4d246e4c1c4
tree96cb8bc5ccded91f27aa19a255c47eda49bcb798
parenta40ddf5c616465a93287e4ac41a98d04b4fb2b37
Netlink: Ignore dead routes

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.
Such route is marked with a 'dead' / RTNH_F_DEAD flag.

Ignore these routes or multipath nexthops during scan.

Thanks to Vincent Bernat for the original patch.
sysdep/linux/netlink.c