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_tib.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_tib.c')
| -rw-r--r-- | pimd/pim_tib.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pimd/pim_tib.c b/pimd/pim_tib.c index ac07154f86..12ae0d6246 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; |
