summaryrefslogtreecommitdiffstats
path: root/pimd/pim_memory.h
diff options
context:
space:
mode:
authoranuradhak <anuradhak@cumulusnetworks.com>2016-11-18 18:12:27 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:16 +0100
commit7176984f745f73c1350b69100295b25824d20dd4 (patch)
tree56a938670f28efb2428d03d26dad82c4878aa810 /pimd/pim_memory.h
parentpimd: Set pim socket receive buffer to a larger value (diff)
downloadfrr-7176984f745f73c1350b69100295b25824d20dd4.tar.xz
frr-7176984f745f73c1350b69100295b25824d20dd4.zip
pim-anycast-rp: Add limited support for secondary addresses.
Anycast requires that the lo interface be associated with multiple addresses. One is the anycast IP address (which is the same on all RPs participating in RP redundancy) and the second is the unique IP address that will be used as the router id by routing protocols. To accomodate that we maintain a list of secondary addresses per-pim iface and allow any of them to be the RP address. This lets the I_am_RP macro succeed on anycast RPs. Note that the support is limited i.e. we don't actually advertise a secondary list to the neighbors. This is assuming the anycast IP will never be used as a router id i.e. will never be an RPF neighbor. Sample output: ============== dell-s6000-04# sh ip pim interface lo Interface : lo State : up Address : 100.1.1.1 (primary) 100.1.1.2 100.1.1.3 100.1.2.1 >>>>>>> SNIP >>>>>>>>>>>>>>> dell-s6000-04# sh ip pim interface lo json { "lo":{ "name":"lo", "state":"up", "address":"100.1.1.1", "index":1, "lanDelayEnabled":true, "secondaryAddressList":[ "100.1.1.2", "100.1.1.3", "100.1.2.1" ], >>>>>>> SNIP >>>>>>>>>>>>>>> dell-s6000-04#sh ip pim rp-info RP address group/prefix-list OIF I am RP 100.1.2.1 224.0.0.0/4 lo yes dell-s6000-04# Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_memory.h')
-rw-r--r--pimd/pim_memory.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pimd/pim_memory.h b/pimd/pim_memory.h
index 0f47fc22b..b6b9b2323 100644
--- a/pimd/pim_memory.h
+++ b/pimd/pim_memory.h
@@ -45,5 +45,6 @@ DECLARE_MTYPE(PIM_MSDP_MG_NAME)
DECLARE_MTYPE(PIM_MSDP_SA)
DECLARE_MTYPE(PIM_MSDP_MG)
DECLARE_MTYPE(PIM_MSDP_MG_MBR)
+DECLARE_MTYPE(PIM_SEC_ADDR)
#endif /* _QUAGGA_PIM_MEMORY_H */