diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-24 11:29:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 11:29:04 +0100 |
commit | 5b299acd1fbb8e4a9abe9c35a7b35d5e9af2f170 (patch) | |
tree | 522444c132b743acfc3c5ea5ef97f68f96af6afb | |
parent | Merge pull request #6026 from sarav511/nbrcln (diff) | |
parent | pimd: bsr election elects wrong bsr (diff) | |
download | frr-5b299acd1fbb8e4a9abe9c35a7b35d5e9af2f170.tar.xz frr-5b299acd1fbb8e4a9abe9c35a7b35d5e9af2f170.zip |
Merge pull request #6072 from sarav511/bsrelect
pimd: bsr election elects wrong bsr
-rw-r--r-- | pimd/pim_bsm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pimd/pim_bsm.c b/pimd/pim_bsm.c index bcf11aedb..8b868250b 100644 --- a/pimd/pim_bsm.c +++ b/pimd/pim_bsm.c @@ -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; |