Pass struct rib_entry to rde_generate_updates() instead of struct rib.
authorclaudio <claudio@openbsd.org>
Mon, 13 Feb 2023 18:07:53 +0000 (18:07 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 13 Feb 2023 18:07:53 +0000 (18:07 +0000)
commit988ba0ba4c35234dc11879fc97fa053d4a6c1a3b
tree68222cef69b9bf5e24f366815e8e275df760325f
parent93e02c7f8001640084e9fee752d2bdd55d099533
Pass struct rib_entry to rde_generate_updates() instead of struct rib.
With this the newbest and oldbest arguments can go since the infromation
is part of the rib_entry. Especially the prefix in the rib_entry is
always valid so simplify some code in various functions below to use
this information.
OK tb@
usr.sbin/bgpd/rde.c
usr.sbin/bgpd/rde.h
usr.sbin/bgpd/rde_decide.c
usr.sbin/bgpd/rde_peer.c
usr.sbin/bgpd/rde_update.c