]> 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)
committerMaria Matejka <mq@ucw.cz>
Tue, 7 Jan 2025 19:38:49 +0000 (20:38 +0100)
commitf9c7861e116ad8dc5e5a2314d0f976bf8c938de0
tree8f5d3b08693227e2ea50a785e98bee50568aea2f
parentde7ded6ef614ae3138599b8a322f3eb6c204d57b
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