diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-12-12 10:55:10 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-12-12 10:55:10 +0100 |
commit | 7685ffda19303d03834760e2e5f6e8e84fe44cc8 (patch) | |
tree | 58d7d837b616cdfe4368da2b19b07a9e994a678d /bgpd/bgpd.c | |
parent | bgpd: Use sub_sort also when creating a hash key for update-groups (diff) | |
download | frr-7685ffda19303d03834760e2e5f6e8e84fe44cc8.tar.xz frr-7685ffda19303d03834760e2e5f6e8e84fe44cc8.zip |
bgpd: Update sub_sort when handling doppelganger connections
This is important especially for OPEN messages. Without this, we can't send
software-version capability which relies on OAD too.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgpd.c')
-rw-r--r-- | bgpd/bgpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 051d92071..b9ba70bb8 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -1542,6 +1542,7 @@ void peer_xfer_config(struct peer *peer_dst, struct peer *peer_src) /* copy tcp_mss value */ peer_dst->tcp_mss = peer_src->tcp_mss; (void)peer_sort(peer_dst); + peer_dst->sub_sort = peer_src->sub_sort; peer_dst->rmap_type = peer_src->rmap_type; peer_dst->local_role = peer_src->local_role; |