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_instance.h | |
| 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_instance.h')
| -rw-r--r-- | pimd/pim_instance.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pimd/pim_instance.h b/pimd/pim_instance.h index f484d847b2..387926c907 100644 --- a/pimd/pim_instance.h +++ b/pimd/pim_instance.h @@ -191,6 +191,22 @@ struct pim_instance { int64_t last_route_change_time; uint64_t gm_rx_drop_sys; + +#if PIM_IPV == 6 + struct { + /** Embedded RP enable state. */ + bool enable; + /** Embedded RP group prefix list. */ + char *group_list; + /** Maximum allowed number of embedded RPs at a time. */ + uint32_t maximum_rps; + + /** Embedded RP routing table */ + struct route_table *table; + /** Embedded RPs count */ + size_t rp_count; + } embedded_rp; +#endif /* PIM_IPV == 6 */ }; void pim_vrf_init(void); |
