Introduce peer_is_up() and use it instead of peer->state == PEER_UP checks
authorclaudio <claudio@openbsd.org>
Wed, 28 Aug 2024 13:21:39 +0000 (13:21 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 28 Aug 2024 13:21:39 +0000 (13:21 +0000)
commitc4328fc634db1e3992e000a04a70634da0a5e4c3
tree352d6dbcf3584a927fa0ec74a451b2e7aa7574a6
parent174b88088dfd1e67afec1cddfc81284f65458476
Introduce peer_is_up() and use it instead of peer->state == PEER_UP checks
also enqueue update and rrfresh imsgs only if the peer is up and flush them
once this is no longer the case.
OK tb@
usr.sbin/bgpd/rde.c
usr.sbin/bgpd/rde.h
usr.sbin/bgpd/rde_peer.c