mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 14:54:24 +00:00
bgpd: fix source-address for BFD sessions when using update-source IFNAME
When "update-source IFNAME" is used for the neighbor, p->update_source is set to NULL, so we can't use it as a source address and should use the address from p->su_local. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
4b80ea6252
commit
5b7586900a
@ -163,7 +163,7 @@ void bgp_peer_bfd_update_source(struct peer *p)
|
||||
return;
|
||||
|
||||
/* Figure out the correct source to use. */
|
||||
if (CHECK_FLAG(p->flags, PEER_FLAG_UPDATE_SOURCE))
|
||||
if (CHECK_FLAG(p->flags, PEER_FLAG_UPDATE_SOURCE) && p->update_source)
|
||||
source = p->update_source;
|
||||
else
|
||||
source = p->su_local;
|
||||
|
Loading…
Reference in New Issue
Block a user