From ffac1326b2f0d6a496e27c49f3a948b846fa16fc Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 3 Nov 2016 16:23:50 -0400 Subject: [PATCH] pimd: Add some explanatory debugging for a error condition. When we decide to ignore a incoming packet, allow detailed debugging to give a pointer to where to go to understand the issue. Signed-off-by: Donald Sharp --- pimd/pim_mroute.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c index 467fc45b98..48890d32fd 100644 --- a/pimd/pim_mroute.c +++ b/pimd/pim_mroute.c @@ -103,7 +103,12 @@ pim_mroute_msg_nocache (int fd, struct interface *ifp, const struct igmpmsg *msg (!pim_ifp) || (!(PIM_I_am_DR(pim_ifp))) || (pim_ifp->itype == PIM_INTERFACE_SSM)) - return 0; + { + if (PIM_DEBUG_MROUTE_DETAIL) + zlog_debug ("%s: Interface is not configured correctly to handle incoming packet: Could be !DR, !pim_ifp, !SM, !RP", + __PRETTY_FUNCTION__); + return 0; + } /* * If we've received a multicast packet that isn't connected to -- 2.39.5