summaryrefslogtreecommitdiff
path: root/nuttx/examples/igmp/igmp.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-07-13 02:29:09 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-07-13 02:29:09 +0000
commit35a4b3030e7548e6aace209ef8e92a5e2b495d1e (patch)
tree58618ea692e3702c7d1a14201cbffc505cc40fc0 /nuttx/examples/igmp/igmp.c
parent71304dc3cb0f85441247930b1a62a5ddaa09dbf4 (diff)
downloadpx4-nuttx-35a4b3030e7548e6aace209ef8e92a5e2b495d1e.tar.gz
px4-nuttx-35a4b3030e7548e6aace209ef8e92a5e2b495d1e.tar.bz2
px4-nuttx-35a4b3030e7548e6aace209ef8e92a5e2b495d1e.zip
IGMP debug fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2790 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/igmp/igmp.c')
-rwxr-xr-xnuttx/examples/igmp/igmp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/examples/igmp/igmp.c b/nuttx/examples/igmp/igmp.c
index 281073940..c341e4c1d 100755
--- a/nuttx/examples/igmp/igmp.c
+++ b/nuttx/examples/igmp/igmp.c
@@ -87,7 +87,9 @@ int user_start(int argc, char *argv[])
uint8_t mac[IFHWADDRLEN];
#endif
-/* Many embedded network interfaces must have a software assigned MAC */
+ message("Configuring Ethernet...\n");
+
+ /* Many embedded network interfaces must have a software assigned MAC */
#ifdef CONFIG_EXAMPLE_IGMP_NOMAC
mac[0] = 0x00;
@@ -117,19 +119,23 @@ int user_start(int argc, char *argv[])
/* Not much of a test for now */
/* Join the group */
+ message("Join group...\n");
addr.s_addr = HTONL(CONFIG_EXAMPLE_IGMP_GRPADDR);
ipmsfilter("eth0", &addr, MCAST_INCLUDE);
/* Wait a while */
+ message("Wait for timeout...\n");
sleep(5);
/* Leave the group */
+ message("Leave group...\n");
ipmsfilter("eth0", &addr, MCAST_EXCLUDE);
/* Wait a while */
sleep(5);
+ message("Exiting...\n");
return 0;
}