]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: explicitly ensure the RP src is BSR 17856/head
authorJafar Al-Gharaibeh <jafar@atcorp.com>
Sat, 11 Jan 2025 20:40:28 +0000 (14:40 -0600)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 14 Jan 2025 17:40:36 +0000 (17:40 +0000)
With the recent suppoort of multiple sources of RPs, we can assume non static RPs
are BSR RPs. Just make the check explicit for BSR.

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
(cherry picked from commit cda66453c1ffc82731dae24e2ccf7caeb69baa7c)

pimd/pim_bsm.c

index b0c7a4c74eb09f6e033af282781d3c8fe37281f4..5a194e3119a8596bf6d7cc0d71147c5f201b29be 100644 (file)
@@ -391,7 +391,7 @@ static void pim_on_g2rp_timer(struct event *t)
                return;
        }
 
-       if (rp_info->rp_src != RP_SRC_STATIC) {
+       if (rp_info->rp_src == RP_SRC_BSR) {
                /* If new rp available, change it else delete the existing */
                if (bsrp) {
                        pim_g2rp_timer_start(