summaryrefslogtreecommitdiff
path: root/pimd/pim_mroute.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2024-10-02 09:22:48 -0300
committerRafael Zalamena <rzalamena@opensourcerouting.org>2024-11-13 12:05:35 -0300
commit23c7acd2327b4caeec0b4e2a1a082bfd10ede957 (patch)
tree9f77ef3731331f591d021a0c55167430e8026546 /pimd/pim_mroute.c
parent5456bc5d9313b53b8059583cba7c95f55f08a26b (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_mroute.c')
-rw-r--r--pimd/pim_mroute.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c
index adc47e719d..9d290c3c6f 100644
--- a/pimd/pim_mroute.c
+++ b/pimd/pim_mroute.c
@@ -182,6 +182,14 @@ int pim_mroute_msg_nocache(int fd, struct interface *ifp, const kernmsg *msg)
* so the kernel doesn't keep nagging us.
*/
struct pim_rpf *rpg;
+#if PIM_IPV == 6
+ pim_addr embedded_rp;
+
+ 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 */
rpg = RP(pim_ifp->pim, msg->msg_im_dst);
if (!rpg) {