summaryrefslogtreecommitdiffstats
path: root/pimd/pim_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-09-21 16:28:57 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-09-21 16:28:57 +0200
commit90a084e4a1bbffc2de9a1192fdc3ab30c58a1b80 (patch)
treeb2d783d858d2eb62bc8dc948c1a1f87bb7cf7d7a /pimd/pim_zebra.c
parentpimd: Add some extra information to a show command (diff)
downloadfrr-90a084e4a1bbffc2de9a1192fdc3ab30c58a1b80.tar.xz
frr-90a084e4a1bbffc2de9a1192fdc3ab30c58a1b80.zip
pimd: Add a debug to tell why we are not creating upsteam state
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>
Diffstat (limited to '')
-rw-r--r--pimd/pim_zebra.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c
index 4fa4ea857..4ff9bd6bd 100644
--- a/pimd/pim_zebra.c
+++ b/pimd/pim_zebra.c
@@ -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.