mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 04:36:45 +00:00
Merge pull request #6072 from sarav511/bsrelect
pimd: bsr election elects wrong bsr
This commit is contained in:
commit
5b299acd1f
@ -601,7 +601,8 @@ static bool is_preferred_bsr(struct pim_instance *pim, struct in_addr bsr,
|
||||
return true;
|
||||
|
||||
else if (bsr_prio == pim->global_scope.current_bsr_prio) {
|
||||
if (bsr.s_addr >= pim->global_scope.current_bsr.s_addr)
|
||||
if (ntohl(bsr.s_addr)
|
||||
>= ntohl(pim->global_scope.current_bsr.s_addr))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user