]> git.ipfire.org Git - thirdparty/bird.git/commit
KRT: Allow to learn routes with RTPROT_KERNEL
authorPavel Šorejs <mail@sorejs.eu>
Fri, 6 Oct 2023 02:31:19 +0000 (04:31 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 6 Oct 2023 02:55:56 +0000 (04:55 +0200)
commite83beb70bd14923cece5b35411606ade6fb8fbee
tree7433fd0d7a57c5d2190ece9b43516f132976a880
parent57aa077227d1f2440dc1b2bb6cbbebd418a6b898
KRT: Allow to learn routes with RTPROT_KERNEL

The Kernel protocol, even with the option 'learn' enabled, ignores
direct routes created by the OS kernel (on Linux these are routes
with rtm_protocol == RTPROT_KERNEL).

Implement optional behavior where both OS kernel and third-party routes
are learned, it can be enabled by 'learn all' option.

Minor changes by committer.
doc/bird.sgml
sysdep/linux/netlink.c
sysdep/unix/krt.Y
sysdep/unix/krt.c
sysdep/unix/krt.h