]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Add a debug to tell why we are not creating upsteam state
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 21 Sep 2018 14:28:57 +0000 (10:28 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 21 Sep 2018 14:28:57 +0000 (10:28 -0400)
When we decide we are not the right pim process to add upstream state
for the igmp state received, notice this in a debug to make life
easier to debug.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_zebra.c

index 4fa4ea857fed7af63b5122dfb855b680cdf2cd70..4ff9bd6bdc65863519ecf89c723fa9f479aca068 100644 (file)
@@ -1044,9 +1044,14 @@ void igmp_source_forward_start(struct pim_instance *pim,
                return;
        }
 
-       if (!(PIM_I_am_DR(pim_oif)))
+       if (!(PIM_I_am_DR(pim_oif))) {
+               if (PIM_DEBUG_IGMP_TRACE)
+                       zlog_debug("%s: %s was received on %s interface but we are not DR for that interface",
+                                  __PRETTY_FUNCTION__,
+                                  pim_str_sg_dump(&sg),
+                                  group->group_igmp_sock->interface->name);
                return;
-
+       }
        /*
          Feed IGMPv3-gathered local membership information into PIM
          per-interface (S,G) state.