summaryrefslogtreecommitdiff
path: root/apps/examples/igmp
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-04 17:36:07 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-04 17:36:07 +0000
commitd0c91546343d545c11c10f7d29d1c06175c1109a (patch)
tree64bb2a8bfc5fdae5e8a88464b3b89054f602259e /apps/examples/igmp
parentf096e07fceb776545fa7b06501dc734ad0e81783 (diff)
downloadnuttx-d0c91546343d545c11c10f7d29d1c06175c1109a.tar.gz
nuttx-d0c91546343d545c11c10f7d29d1c06175c1109a.tar.bz2
nuttx-d0c91546343d545c11c10f7d29d1c06175c1109a.zip
Change all occurrences of CONFIG_EXAMPLE_ to CONFIG_EXAMPLES_ for consistency; fleshed out a few more Kconfig files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5211 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/igmp')
-rw-r--r--apps/examples/igmp/igmp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/examples/igmp/igmp.c b/apps/examples/igmp/igmp.c
index 73ca8a3e6..ebb4feb07 100644
--- a/apps/examples/igmp/igmp.c
+++ b/apps/examples/igmp/igmp.c
@@ -64,8 +64,8 @@
* addresses=0xff (ff00::/8.)
*/
-#if ((CONFIG_EXAMPLE_IGMP_GRPADDR & 0xffff0000) < 0xe0000000ul) || \
- ((CONFIG_EXAMPLE_IGMP_GRPADDR & 0xffff0000) > 0xeffffffful)
+#if ((CONFIG_EXAMPLES_IGMP_GRPADDR & 0xffff0000) < 0xe0000000ul) || \
+ ((CONFIG_EXAMPLES_IGMP_GRPADDR & 0xffff0000) > 0xeffffffful)
# error "Bad range for IGMP group address"
#endif
@@ -84,7 +84,7 @@
int igmp_main(int argc, char *argv[])
{
struct in_addr addr;
-#if defined(CONFIG_EXAMPLE_IGMP_NOMAC)
+#if defined(CONFIG_EXAMPLES_IGMP_NOMAC)
uint8_t mac[IFHWADDRLEN];
#endif
@@ -92,7 +92,7 @@ int igmp_main(int argc, char *argv[])
/* Many embedded network interfaces must have a software assigned MAC */
-#ifdef CONFIG_EXAMPLE_IGMP_NOMAC
+#ifdef CONFIG_EXAMPLES_IGMP_NOMAC
mac[0] = 0x00;
mac[1] = 0xe0;
mac[2] = 0xde;
@@ -104,24 +104,24 @@ int igmp_main(int argc, char *argv[])
/* Set up our host address */
- addr.s_addr = HTONL(CONFIG_EXAMPLE_IGMP_IPADDR);
+ addr.s_addr = HTONL(CONFIG_EXAMPLES_IGMP_IPADDR);
uip_sethostaddr("eth0", &addr);
/* Set up the default router address */
- addr.s_addr = HTONL(CONFIG_EXAMPLE_IGMP_DRIPADDR);
+ addr.s_addr = HTONL(CONFIG_EXAMPLES_IGMP_DRIPADDR);
uip_setdraddr("eth0", &addr);
/* Setup the subnet mask */
- addr.s_addr = HTONL(CONFIG_EXAMPLE_IGMP_NETMASK);
+ addr.s_addr = HTONL(CONFIG_EXAMPLES_IGMP_NETMASK);
uip_setnetmask("eth0", &addr);
/* Not much of a test for now */
/* Join the group */
message("Join group...\n");
- addr.s_addr = HTONL(CONFIG_EXAMPLE_IGMP_GRPADDR);
+ addr.s_addr = HTONL(CONFIG_EXAMPLES_IGMP_GRPADDR);
ipmsfilter("eth0", &addr, MCAST_INCLUDE);
/* Wait a while */