diff options
author | Mobashshera Rasool <mrasool@vmware.com> | 2022-02-17 12:56:20 +0100 |
---|---|---|
committer | Mobashshera Rasool <mrasool@vmware.com> | 2022-03-08 09:57:51 +0100 |
commit | c6ced47492ab55d04bc237727fd90fbffa3ed438 (patch) | |
tree | d738d474359e6054c1713b20838dac3988c77176 /pimd/pim_bsm.c | |
parent | pim6d: Modify pim_rp_change api for pimv6 (diff) | |
download | frr-c6ced47492ab55d04bc237727fd90fbffa3ed438.tar.xz frr-c6ced47492ab55d04bc237727fd90fbffa3ed438.zip |
pim6d: Add pim_get_all_mcast_group api
Added this api to fill all multicast group address based on IP version.
For PIMv4 its 224.0.0.0/4, for PIMv6 its FF00::0/8.
Changed the code where its being used currently.
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
Diffstat (limited to 'pimd/pim_bsm.c')
-rw-r--r-- | pimd/pim_bsm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pimd/pim_bsm.c b/pimd/pim_bsm.c index 61e51c017..21cbe09c4 100644 --- a/pimd/pim_bsm.c +++ b/pimd/pim_bsm.c @@ -36,6 +36,7 @@ #include "pim_bsm.h" #include "pim_time.h" #include "pim_zebra.h" +#include "pim_util.h" /* Functions forward declaration */ static void pim_bs_timer_start(struct bsm_scope *scope, int bs_timeout); @@ -416,7 +417,7 @@ static void pim_instate_pend_list(struct bsgrp_node *bsgrp_node) pend = bsm_rpinfos_first(bsgrp_node->partial_bsrp_list); - if (!str2prefix("224.0.0.0/4", &group_all)) + if (!pim_get_all_mcast_group(&group_all)) return; rp_all = pim_rp_find_match_group(pim, &group_all); @@ -627,7 +628,7 @@ void pim_bsm_clear(struct pim_instance *pim) pim_delete_tracked_nexthop(pim, &nht_p, NULL, rp_info); - if (!str2prefix("224.0.0.0/4", &g_all)) + if (!pim_get_all_mcast_group(&g_all)) return; rp_all = pim_rp_find_match_group(pim, &g_all); |