diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2022-11-04 16:55:55 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2022-11-04 17:17:39 +0100 |
commit | ab2f9e89b44642af568c3542e1f2b14378fb5ec2 (patch) | |
tree | e7ef08f89a3a1a0426a224689b977f205e9320cf /pimd/pim_util.c | |
parent | Merge pull request #12196 from opensourcerouting/xref-vtysh (diff) | |
download | frr-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.c | 4 |
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; } |