summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.c
diff options
context:
space:
mode:
authorAlexander Skorichenko <askorichenko@netgate.com>2024-02-09 16:23:21 +0100
committerAlexander Skorichenko <askorichenko@netgate.com>2024-02-09 16:58:52 +0100
commitf4da4398f45bb5b37cb59b2c5a3c89d58719ad3f (patch)
tree3899678fabf7b783f2c0a15cba26271d03d983c6 /bgpd/bgpd.c
parentMerge pull request #15333 from c-po/issue-14910 (diff)
downloadfrr-f4da4398f45bb5b37cb59b2c5a3c89d58719ad3f.tar.xz
frr-f4da4398f45bb5b37cb59b2c5a3c89d58719ad3f.zip
bgpd: fix minttl copying during peer reset
Include gtsm_hops (minttl) field when copying peer structure, so that a new connection could set a proper value. Signed-off-by: Alexander Skorichenko <askorichenko@netgate.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgpd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index b8517199a..2ab6400be 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -1650,6 +1650,7 @@ void peer_xfer_config(struct peer *peer_dst, struct peer *peer_src)
XSTRDUP(MTYPE_BGP_PEER_IFNAME, peer_src->ifname);
}
peer_dst->ttl = peer_src->ttl;
+ peer_dst->gtsm_hops = peer_src->gtsm_hops;
}
static int bgp_peer_conf_if_to_su_update_v4(struct peer_connection *connection,