diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2024-10-02 09:22:48 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2024-11-13 12:05:35 -0300 |
| commit | 23c7acd2327b4caeec0b4e2a1a082bfd10ede957 (patch) | |
| tree | 9f77ef3731331f591d021a0c55167430e8026546 /pimd/pim_join.c | |
| parent | 5456bc5d9313b53b8059583cba7c95f55f08a26b (diff) | |
pim6d: support embedded-rp
Implement embedded RP support and configuration commands.
Embedded RP is disabled by default and can be globally enabled with the
command `embedded-rp` in the PIMv6 configuration node.
It supports the following options:
- Embedded RP maximum limit
- Embedded RP group filtering
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_join.c')
| -rw-r--r-- | pimd/pim_join.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pimd/pim_join.c b/pimd/pim_join.c index bfdb0f06b4..2feafabb4d 100644 --- a/pimd/pim_join.c +++ b/pimd/pim_join.c @@ -42,6 +42,9 @@ static void recv_join(struct interface *ifp, struct pim_neighbor *neigh, uint8_t source_flags) { struct pim_interface *pim_ifp = NULL; +#if PIM_IPV == 6 + pim_addr embedded_rp; +#endif /* PIM_IPV == 6 */ if (PIM_DEBUG_PIM_J_P) zlog_debug( @@ -53,6 +56,12 @@ static void recv_join(struct interface *ifp, struct pim_neighbor *neigh, pim_ifp = ifp->info; assert(pim_ifp); +#if PIM_IPV == 6 + if (pim_ifp->pim->embedded_rp.enable && pim_embedded_rp_extract(&sg->grp, &embedded_rp) && + !pim_embedded_rp_filter_match(pim_ifp->pim, &sg->grp)) + pim_embedded_rp_new(pim_ifp->pim, &sg->grp, &embedded_rp); +#endif /* PIM_IPV == 6 */ + ++pim_ifp->pim_ifstat_join_recv; /* |
