mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 02:20:54 +00:00
Merge pull request #14992 from opensourcerouting/fix/oad_missing_parts
bgpd: Recent OAD fixes
This commit is contained in:
commit
315262cab3
@ -343,6 +343,7 @@ static unsigned int updgrp_hash_key_make(const void *p)
|
||||
key = 0;
|
||||
|
||||
key = jhash_1word(peer->sort, key); /* EBGP or IBGP */
|
||||
key = jhash_1word(peer->sub_sort, key); /* OAD */
|
||||
key = jhash_1word((peer->flags & PEER_UPDGRP_FLAGS), key);
|
||||
key = jhash_1word((flags & PEER_UPDGRP_AF_FLAGS), key);
|
||||
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)
|
||||
* STATEMENT STAYS UP TO DATE
|
||||
*/
|
||||
if (bgp_debug_neighbor_events(peer)) {
|
||||
zlog_debug(
|
||||
"%pBP Update Group Hash: sort: %d UpdGrpFlags: %ju UpdGrpAFFlags: %ju",
|
||||
peer, peer->sort,
|
||||
(intmax_t)CHECK_FLAG(peer->flags, PEER_UPDGRP_FLAGS),
|
||||
(intmax_t)CHECK_FLAG(flags, PEER_UPDGRP_AF_FLAGS));
|
||||
zlog_debug("%pBP Update Group Hash: sort: %d sub_sort: %d UpdGrpFlags: %ju UpdGrpAFFlags: %ju",
|
||||
peer, peer->sort, peer->sub_sort,
|
||||
(intmax_t)CHECK_FLAG(peer->flags, PEER_UPDGRP_FLAGS),
|
||||
(intmax_t)CHECK_FLAG(flags, PEER_UPDGRP_AF_FLAGS));
|
||||
zlog_debug(
|
||||
"%pBP Update Group Hash: addpath: %u UpdGrpCapFlag: %u UpdGrpCapAFFlag: %u route_adv: %u change local as: %u, as_path_loop_detection: %d",
|
||||
peer, (uint32_t)peer->addpath_type[afi][safi],
|
||||
|
@ -1543,6 +1543,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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user