]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: explicitly ensure the RP src is BSR
authorJafar Al-Gharaibeh <jafar@atcorp.com>
Sat, 11 Jan 2025 20:40:28 +0000 (14:40 -0600)
committerJafar Al-Gharaibeh <jafar@atcorp.com>
Mon, 13 Jan 2025 16:18:24 +0000 (10:18 -0600)
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>
pimd/pim_bsm.c

index 672cdffaae288f2d8d7297be1b011fc17c54cb42..1dd54e53585386fb959107b2b70bffd58f2da5b8 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(