From 35a4b3030e7548e6aace209ef8e92a5e2b495d1e Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 13 Jul 2010 02:29:09 +0000 Subject: IGMP debug fixes git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2790 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/examples/igmp/igmp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'nuttx/examples') 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; } -- cgit v1.2.3