forked from Mirror/frr
pimd: use SSM check helper
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
eeec411244
commit
95793341ab
|
@ -70,19 +70,9 @@ void pim_ssm_prefix_list_update(struct pim_instance *pim,
|
||||||
|
|
||||||
static int pim_is_grp_standard_ssm(struct prefix *group)
|
static int pim_is_grp_standard_ssm(struct prefix *group)
|
||||||
{
|
{
|
||||||
static int first = 1;
|
pim_addr addr = pim_addr_from_prefix(group);
|
||||||
static struct prefix group_ssm;
|
|
||||||
|
|
||||||
if (first) {
|
return pim_addr_ssm(addr);
|
||||||
if (!str2prefix(PIM_SSM_STANDARD_RANGE, &group_ssm))
|
|
||||||
flog_err(EC_LIB_DEVELOPMENT,
|
|
||||||
"%s: Failure to Read Group Address: %s",
|
|
||||||
__func__, PIM_SSM_STANDARD_RANGE);
|
|
||||||
|
|
||||||
first = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return prefix_match(&group_ssm, group);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int pim_is_grp_ssm(struct pim_instance *pim, pim_addr group_addr)
|
int pim_is_grp_ssm(struct pim_instance *pim, pim_addr group_addr)
|
||||||
|
|
Loading…
Reference in a new issue