Switch the rde_peer hashtable and peer list to a single RB tree.
authorclaudio <claudio@openbsd.org>
Thu, 1 Sep 2022 13:23:24 +0000 (13:23 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 1 Sep 2022 13:23:24 +0000 (13:23 +0000)
commitdcbb4522321f5e10875533da6565e7d12234fe9e
tree4782b4abb1ab1f9f8d64af0121d781fcb66903c8
parent4ac780ca57e31822b731b54ee49c95b87198dab9
Switch the rde_peer hashtable and peer list to a single RB tree.
Only the RDE used a hashtable for lookups while the session engine
switched from a list to RB tree some time ago.
Use peer_foreach() in the mrt code instead of passing the peer list
as an argument.
OK benno@ tb@
usr.sbin/bgpd/mrt.c
usr.sbin/bgpd/rde.c
usr.sbin/bgpd/rde.h
usr.sbin/bgpd/rde_peer.c