There is no need to track both F_BGPD and F_KERNEL anymore.
authorclaudio <claudio@openbsd.org>
Wed, 27 Jul 2022 17:23:17 +0000 (17:23 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 27 Jul 2022 17:23:17 +0000 (17:23 +0000)
commit6135bd9daa4d5c1d81ba96cdaa2766837c13ca3e
tree8156fca0fba9a6d006abe274da2414423bb6ef3a
parentd644d9e8259ea3ef8c078baf3dc4ec6733014488
There is no need to track both F_BGPD and F_KERNEL anymore.
Remove F_KERNEL and replace the checks using the F_BGPD flag.
Also do not convert the priority in kr_tofull() instead provide
kr_priority() which does this and is used by the bgpctl imsg
commands. Also in dispatch_rtmsg_addr() convert to RTP_MINE if
the priority is equal to the configured priority.
OK tb@
usr.sbin/bgpd/bgpd.h
usr.sbin/bgpd/kroute.c