summaryrefslogtreecommitdiff
path: root/pimd/pim_zebra.c
diff options
context:
space:
mode:
authorsaravanank <saravanank@vmware.com>2019-05-20 10:01:34 -0700
committersaravanank <saravanank@vmware.com>2019-06-12 19:07:13 -0700
commit50d06d9e561affb999a1a7c893e260f50d4fe1c6 (patch)
tree16414330039eebb90eec7457b03cecdc44277549 /pimd/pim_zebra.c
parent8b40649e0d728ab8b74a8c9dc2434f638e06b36c (diff)
pimd: fix DR at LHR scenario where non DR is connected to RP
In Scenario where receiver is present in a subnet where 2 or more pim mrouters. When IGMP query received on a DR interface and RP is reachable through non DR. Currently we are blocking to create upstream where iif == oif. So pim join not generated towards RP. We have to allow the DR router in the network to create an upstream. Signed-off-by: Saravanan K <saravanank@vmware.com>
Diffstat (limited to 'pimd/pim_zebra.c')
-rw-r--r--pimd/pim_zebra.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c
index 25ac307ac4..653916dead 100644
--- a/pimd/pim_zebra.c
+++ b/pimd/pim_zebra.c
@@ -1043,10 +1043,12 @@ void igmp_source_forward_start(struct pim_instance *pim,
* Protect IGMP against adding looped MFC
* entries created by both source and receiver
* attached to the same interface. See TODO
- * T22.
+ * T22. Block only when the intf is non DR
+ * DR must create upstream.
*/
- if (input_iface_vif_index ==
- pim_oif->mroute_vif_index) {
+ if ((input_iface_vif_index ==
+ pim_oif->mroute_vif_index) &&
+ !(PIM_I_am_DR(pim_oif))) {
/* ignore request for looped MFC entry
*/
if (PIM_DEBUG_IGMP_TRACE) {