]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Keep the last reset reason before we reset the peer
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 25 Jul 2024 10:22:27 +0000 (13:22 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 25 Jul 2024 10:22:27 +0000 (13:22 +0300)
commitfa9bd07ae5e93479ff4e7b81791393ab883cc722
tree5daef5d05ef1764886bb493ace6e382f40514003
parent743b16938455efd44f6e59b42d8800c3881f9889
bgpd: Keep the last reset reason before we reset the peer

If we send a notification, there is no point setting the last_reset, because
bgp_notify_send() sets last_reset to PEER_DOWN_NOTIFY_SEND (almost everywhere).

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_fsm.c
bgpd/bgp_vty.c
bgpd/bgpd.c