Skip to content

Commit 315262c

Browse files
authored
Merge pull request FRRouting#14992 from opensourcerouting/fix/oad_missing_parts
bgpd: Recent OAD fixes
2 parents d28bfc3 + 7685ffd commit 315262c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

bgpd/bgp_updgrp.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ static unsigned int updgrp_hash_key_make(const void *p)
343343
key = 0;
344344

345345
key = jhash_1word(peer->sort, key); /* EBGP or IBGP */
346+
key = jhash_1word(peer->sub_sort, key); /* OAD */
346347
key = jhash_1word((peer->flags & PEER_UPDGRP_FLAGS), key);
347348
key = jhash_1word((flags & PEER_UPDGRP_AF_FLAGS), key);
348349
key = jhash_1word((uint32_t)peer->addpath_type[afi][safi], key);
@@ -448,11 +449,10 @@ static unsigned int updgrp_hash_key_make(const void *p)
448449
* STATEMENT STAYS UP TO DATE
449450
*/
450451
if (bgp_debug_neighbor_events(peer)) {
451-
zlog_debug(
452-
"%pBP Update Group Hash: sort: %d UpdGrpFlags: %ju UpdGrpAFFlags: %ju",
453-
peer, peer->sort,
454-
(intmax_t)CHECK_FLAG(peer->flags, PEER_UPDGRP_FLAGS),
455-
(intmax_t)CHECK_FLAG(flags, PEER_UPDGRP_AF_FLAGS));
452+
zlog_debug("%pBP Update Group Hash: sort: %d sub_sort: %d UpdGrpFlags: %ju UpdGrpAFFlags: %ju",
453+
peer, peer->sort, peer->sub_sort,
454+
(intmax_t)CHECK_FLAG(peer->flags, PEER_UPDGRP_FLAGS),
455+
(intmax_t)CHECK_FLAG(flags, PEER_UPDGRP_AF_FLAGS));
456456
zlog_debug(
457457
"%pBP Update Group Hash: addpath: %u UpdGrpCapFlag: %u UpdGrpCapAFFlag: %u route_adv: %u change local as: %u, as_path_loop_detection: %d",
458458
peer, (uint32_t)peer->addpath_type[afi][safi],

bgpd/bgpd.c

+1
Original file line numberDiff line numberDiff line change
@@ -1543,6 +1543,7 @@ void peer_xfer_config(struct peer *peer_dst, struct peer *peer_src)
15431543
/* copy tcp_mss value */
15441544
peer_dst->tcp_mss = peer_src->tcp_mss;
15451545
(void)peer_sort(peer_dst);
1546+
peer_dst->sub_sort = peer_src->sub_sort;
15461547
peer_dst->rmap_type = peer_src->rmap_type;
15471548
peer_dst->local_role = peer_src->local_role;
15481549

0 commit comments

Comments
 (0)