summaryrefslogtreecommitdiffstats
path: root/pimd/pim_util.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-11-04 16:55:55 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-11-04 17:17:39 +0100
commitab2f9e89b44642af568c3542e1f2b14378fb5ec2 (patch)
treee7ef08f89a3a1a0426a224689b977f205e9320cf /pimd/pim_util.c
parentMerge pull request #12196 from opensourcerouting/xref-vtysh (diff)
downloadfrr-ab2f9e89b44642af568c3542e1f2b14378fb5ec2.tar.xz
frr-ab2f9e89b44642af568c3542e1f2b14378fb5ec2.zip
pimd: consistently ignore prefix list mask len
... the prefix length wasn't ignored as expected. Both S and G are always /32. But expecting "le 32" in prefix-list config is unexpected & counterintuitive. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_util.c')
-rw-r--r--pimd/pim_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pimd/pim_util.c b/pimd/pim_util.c
index 150e1a01e..273c332c9 100644
--- a/pimd/pim_util.c
+++ b/pimd/pim_util.c
@@ -150,7 +150,9 @@ bool pim_is_group_filtered(struct pim_interface *pim_ifp, pim_addr *grp)
pim_addr_to_prefix(&grp_pfx, *grp);
pl = prefix_list_lookup(PIM_AFI, pim_ifp->boundary_oil_plist);
- return pl ? prefix_list_apply(pl, &grp_pfx) == PREFIX_DENY : false;
+ return pl ? prefix_list_apply_ext(pl, NULL, &grp_pfx, true) ==
+ PREFIX_DENY
+ : false;
}