enum pim_ifjoin_state old_state = ch->ifjoin_state;
if (PIM_DEBUG_PIM_EVENTS)
- zlog_debug ("PIM_IFCHANNEL: %s is switching from %s to %s",
+ zlog_debug ("PIM_IFCHANNEL(%s): %s is switching from %s to %s",
+ ch->interface->name,
pim_str_sg_dump (&ch->sg),
pim_ifchannel_ifjoin_name (ch->ifjoin_state),
pim_ifchannel_ifjoin_name (new_state));
char buff[100];
strcpy (buff, pim_str_sg_dump (&up->sg));
- zlog_debug("%s %s: IGMP (S,G)=%s from %s",
+ zlog_debug("%s %s: IGMP (S,G)=%s(%s) from %s",
__FILE__, __PRETTY_FUNCTION__,
- buff, pim_str_sg_dump (sg));
+ buff, ifp->name, pim_str_sg_dump (sg));
}
if (pim_upstream_evaluate_join_desired (child))
{
char buff[100];
strcpy (buff, pim_str_sg_dump (&up->sg));
- zlog_debug("%s %s: Prune(S,G)=%s from %s",
+ zlog_debug("%s %s: Prune(S,G)=%s(%s) from %s",
__FILE__, __PRETTY_FUNCTION__,
- buff, pim_str_sg_dump (&child->sg));
+ buff, ifp->name, pim_str_sg_dump (&child->sg));
}
if (!pim_upstream_evaluate_join_desired (child))
void pim_upstream_delete(struct pim_upstream *up)
{
+ if (PIM_DEBUG_PIM_TRACE)
+ zlog_debug ("%s: %s is being deleted",
+ __PRETTY_FUNCTION__,
+ pim_str_sg_dump (&up->sg));
THREAD_OFF(up->t_join_timer);
THREAD_OFF(up->t_ka_timer);
THREAD_OFF(up->t_rs_timer);
struct interface *incoming,
int flags)
{
- struct pim_upstream *up;
+ struct pim_upstream *up = NULL;
up = pim_upstream_find(sg);
if (up) {