diff options
| author | Corey Siltala <csiltala@atcorp.com> | 2024-11-25 10:43:30 -0600 |
|---|---|---|
| committer | Corey Siltala <csiltala@atcorp.com> | 2024-12-06 14:44:17 -0600 |
| commit | a9bee74ea2ed6e91a7a49d291ad1a8d3c2c1bec0 (patch) | |
| tree | e9823e8bb63fe440686771ca76a9b340a818921e /pimd/pim_util.h | |
| parent | f1a9b9292c1a4cc4853b4dd829b0d3c821583fb5 (diff) | |
pimd: Move ACL handling to pim_util.c
Move the extended access-list handling from pim_msdp_packet.c to
pim_util.c to allow use elsewhere in the daemon.
Signed-off-by: Corey Siltala <csiltala@atcorp.com>
Diffstat (limited to 'pimd/pim_util.h')
| -rw-r--r-- | pimd/pim_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_util.h b/pimd/pim_util.h index c882fe4878..cffa93ed29 100644 --- a/pimd/pim_util.h +++ b/pimd/pim_util.h @@ -10,6 +10,7 @@ #include <stdint.h> #include <zebra.h> +#include "lib/filter.h" #include "checksum.h" #include "pimd.h" @@ -22,6 +23,8 @@ void pim_pkt_dump(const char *label, const uint8_t *buf, int size); int pim_is_group_224_0_0_0_24(struct in_addr group_addr); int pim_is_group_224_4(struct in_addr group_addr); +enum filter_type pim_access_list_apply(struct access_list *access, const struct in_addr *source, + const struct in_addr *group); bool pim_is_group_filtered(struct pim_interface *pim_ifp, pim_addr *grp); int pim_get_all_mcast_group(struct prefix *prefix); bool pim_addr_is_multicast(pim_addr addr); |
