diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-11-10 18:50:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-10 18:50:10 -0500 |
| commit | 49201fe50563f2c1772db60c5070a25c99d0517c (patch) | |
| tree | 12263df8b70d6a3d97b66a8eefbdeac8a8bc2d5c | |
| parent | dfe016b06b670ed553a9d2a771238a5b0203d423 (diff) | |
| parent | 8ffeaddb5fdf780134b9eb6e8c54e9334147d3a5 (diff) | |
Merge pull request #7491 from volta-networks/fix_ebgp_mhop_reset
bgpd: avoid needless ebgp-multihop session reset
| -rw-r--r-- | bgpd/bgpd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index df453dd993..d2d94707a7 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -4505,6 +4505,10 @@ int peer_ebgp_multihop_set(struct peer *peer, int ttl) if (peer->sort == BGP_PEER_IBGP || peer->conf_if) return 0; + /* is there anything to do? */ + if (peer->ttl == ttl) + return 0; + /* see comment in peer_ttl_security_hops_set() */ if (ttl != MAXTTL) { if (CHECK_FLAG(peer->sflags, PEER_STATUS_GROUP)) { |
