Rework how fib_priority is handled.
authorclaudio <claudio@openbsd.org>
Sun, 5 Jun 2022 12:43:13 +0000 (12:43 +0000)
committerclaudio <claudio@openbsd.org>
Sun, 5 Jun 2022 12:43:13 +0000 (12:43 +0000)
commit859a85633dc7e819b4205133900f5fb347b074e1
tree44fbd7bafdd83c66f447285b15148406fb7f39e1
parent7e16d1ae181db49e5c64905f3309bbb470a6a95e
Rework how fib_priority is handled.
Instead of passing it around all the time put the fib_priority into the
kroute state. It is only needed in send_rtmsg() in the end.
Additionally insert F_BGP_INSERTED routes with a special RTP_MINE priority.
This makes changing the fib_priority at runtime simpler because there
is no need to alter the kroute table anymore.
OK tb@ deraadt@
usr.sbin/bgpd/bgpd.c
usr.sbin/bgpd/bgpd.h
usr.sbin/bgpd/config.c
usr.sbin/bgpd/kroute.c