summaryrefslogtreecommitdiffstats
path: root/pimd/pim_tib.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2024-10-02 14:22:48 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2024-11-13 16:05:35 +0100
commit23c7acd2327b4caeec0b4e2a1a082bfd10ede957 (patch)
tree9f77ef3731331f591d021a0c55167430e8026546 /pimd/pim_tib.c
parentMerge pull request #17331 from Jafaral/ospf-instance (diff)
downloadfrr-23c7acd2327b4caeec0b4e2a1a082bfd10ede957.tar.xz
frr-23c7acd2327b4caeec0b4e2a1a082bfd10ede957.zip
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_tib.c')
-rw-r--r--pimd/pim_tib.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pimd/pim_tib.c b/pimd/pim_tib.c
index ac07154f8..12ae0d624 100644
--- a/pimd/pim_tib.c
+++ b/pimd/pim_tib.c
@@ -115,8 +115,13 @@ bool tib_sg_gm_join(struct pim_instance *pim, pim_sgaddr sg,
return false;
}
- if (!*oilp)
+ if (!*oilp) {
*oilp = tib_sg_oil_setup(pim, sg, oif);
+#if PIM_IPV == 6
+ if (pim_embedded_rp_is_embedded(&sg.grp))
+ (*oilp)->oil_ref_count--;
+#endif /* PIM_IPV == 6 */
+ }
if (!*oilp)
return false;