summaryrefslogtreecommitdiff
path: root/nuttx/net/uip/uip_igmppoll.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-07-13 03:43:06 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-07-13 03:43:06 +0000
commit7569e53f92cc6c313c8642a8cc53dfacea63382b (patch)
tree50917f724a6a70b33050502c1b4bc395528fd460 /nuttx/net/uip/uip_igmppoll.c
parent35a4b3030e7548e6aace209ef8e92a5e2b495d1e (diff)
downloadpx4-nuttx-7569e53f92cc6c313c8642a8cc53dfacea63382b.tar.gz
px4-nuttx-7569e53f92cc6c313c8642a8cc53dfacea63382b.tar.bz2
px4-nuttx-7569e53f92cc6c313c8642a8cc53dfacea63382b.zip
IGMP debug fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2791 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/uip/uip_igmppoll.c')
-rwxr-xr-xnuttx/net/uip/uip_igmppoll.c9
1 files changed, 7 insertions, 2 deletions
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];