]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Keep remote/local socket unions on BGP start event 14410/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 13 Sep 2023 10:21:47 +0000 (13:21 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 13 Sep 2023 10:23:45 +0000 (13:23 +0300)
commit142be67f8cef25805c10592f5162848fb45a20ef
tree994169d7f75573fac176189fb2164613186ed07b
parent47dc0f135469a567572bffaadb86c6e08b30216a
bgpd: Keep remote/local socket unions on BGP start event

Not sure why this is needed, because it's reset on bgp_connect_success(),
when the session is UP.

When the session is reset, it clears those variables, and we are not able to
see what remote address was before, etc.

hostLocal, hostRemote reports Unknown for `show bgp neighbor json`.

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