From: Donald Sharp Date: Thu, 3 Nov 2016 20:23:50 +0000 (-0400) Subject: pimd: Add some explanatory debugging for a error condition. X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~131 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ffac1326b2f0d6a496e27c49f3a948b846fa16fc;p=mirror%2Ffrr.git 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 --- 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