]> git.ipfire.org Git - thirdparty/bird.git/commit
Netlink: Handle onlink flag on BSD-Netlink
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 12 Dec 2024 03:04:07 +0000 (04:04 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 12 Dec 2024 03:04:07 +0000 (04:04 +0100)
commite0ed978e753c57b65b89e860b49fd29acb0b43ad
treea2f7a57ec433a46012a0e5d318e7d357721a2d14
parent38a422d489121bd318b7df7d59d3792d5b6bd76b
Netlink: Handle onlink flag on BSD-Netlink

On BSD, the onlink flag is not tracked or reported by kernel. We are
using an heuristic that assigns the onlink flag to routes scanned from
the kernel. We should use the same heuristic even in BSD-Netlink
case, as the onlink flag is not reported here too.

Thanks to Björn König for the original patch.
sysdep/bsd/krt-sock.c
sysdep/cf/README
sysdep/cf/bsd-netlink.h
sysdep/cf/bsd.h
sysdep/linux/netlink.c
sysdep/unix/krt.c
sysdep/unix/krt.h