From 7569e53f92cc6c313c8642a8cc53dfacea63382b Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 13 Jul 2010 03:43:06 +0000 Subject: IGMP debug fixes git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2791 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/net/uip/uip_igmppoll.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'nuttx/net/uip/uip_igmppoll.c') diff --git a/nuttx/net/uip/uip_igmppoll.c b/nuttx/net/uip/uip_igmppoll.c index 9cc9a4384..b31f2d82c 100755 --- a/nuttx/net/uip/uip_igmppoll.c +++ b/nuttx/net/uip/uip_igmppoll.c @@ -87,16 +87,18 @@ static inline void uip_schedsend(FAR struct uip_driver_s *dev, FAR struct igmp_g if (group->msgid == IGMPv2_MEMBERSHIP_REPORT) { - nllvdbg("Send IGMPv2_MEMBERSHIP_REPORT\n"); dest = &group->grpaddr; + nllvdbg("Send IGMPv2_MEMBERSHIP_REPORT, dest=%08x flags=%02x\n", + *dest, group->flags); IGMP_STATINCR(uip_stat.igmp.report_sched); SET_LASTREPORT(group->flags); /* Remember we were the last to report */ } else { - nllvdbg("Send IGMP_LEAVE_GROUP\n"); DEBUGASSERT(group->msgid == IGMP_LEAVE_GROUP); dest = &g_allrouters; + nllvdbg("Send IGMP_LEAVE_GROUP, dest=%08x flags=%02x\n", + *dest, group->flags); IGMP_STATINCR(uip_stat.igmp.leave_sched); } @@ -113,6 +115,7 @@ static inline void uip_schedsend(FAR struct uip_driver_s *dev, FAR struct igmp_g if (IS_WAITMSG(group->flags)) { + nllvdbg("Awakening waiter\n"); sem_post(&group->sem); } } @@ -141,6 +144,8 @@ void uip_igmppoll(FAR struct uip_driver_s *dev) { FAR struct igmp_group_s *group; + nllvdbg("Entry\n"); + /* Setup the poll operation */ dev->d_appdata = &dev->d_buf[UIP_LLH_LEN + UIP_IPIGMPH_LEN]; -- cgit v1.2.3