diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-04 17:36:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-10-04 17:36:07 +0000 |
commit | d0c91546343d545c11c10f7d29d1c06175c1109a (patch) | |
tree | 64bb2a8bfc5fdae5e8a88464b3b89054f602259e /apps/examples/dhcpd | |
parent | f096e07fceb776545fa7b06501dc734ad0e81783 (diff) | |
download | nuttx-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/dhcpd')
-rw-r--r-- | apps/examples/dhcpd/target.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/examples/dhcpd/target.c b/apps/examples/dhcpd/target.c index 9c554e8cd..37758d041 100644 --- a/apps/examples/dhcpd/target.c +++ b/apps/examples/dhcpd/target.c @@ -57,16 +57,16 @@ * but there are default values for those so we cannot check them here. */ -#ifndef CONFIG_EXAMPLE_DHCPD_IPADDR -# error "You must define CONFIG_EXAMPLE_DHCPD_IPADDR" +#ifndef CONFIG_EXAMPLES_DHCPD_IPADDR +# error "You must define CONFIG_EXAMPLES_DHCPD_IPADDR" #endif -#ifndef CONFIG_EXAMPLE_DHCPD_DRIPADDR -# error "You must define CONFIG_EXAMPLE_DHCPD_DRIPADDR" +#ifndef CONFIG_EXAMPLES_DHCPD_DRIPADDR +# error "You must define CONFIG_EXAMPLES_DHCPD_DRIPADDR" #endif -#ifndef CONFIG_EXAMPLE_DHCPD_NETMASK -# error "You must define CONFIG_EXAMPLE_DHCPD_NETMASK" +#ifndef CONFIG_EXAMPLES_DHCPD_NETMASK +# error "You must define CONFIG_EXAMPLES_DHCPD_NETMASK" #endif #ifndef CONFIG_NET @@ -92,13 +92,13 @@ int dhcpd_main(int argc, char *argv[]) { struct in_addr addr; -#if defined(CONFIG_EXAMPLE_DHCPD_NOMAC) +#if defined(CONFIG_EXAMPLES_DHCPD_NOMAC) uint8_t mac[IFHWADDRLEN]; #endif /* Many embedded network interfaces must have a software assigned MAC */ -#ifdef CONFIG_EXAMPLE_DHCPD_NOMAC +#ifdef CONFIG_EXAMPLES_DHCPD_NOMAC mac[0] = 0x00; mac[1] = 0xe0; mac[2] = 0xde; @@ -110,17 +110,17 @@ int dhcpd_main(int argc, char *argv[]) /* Set up our host address */ - addr.s_addr = HTONL(CONFIG_EXAMPLE_DHCPD_IPADDR); + addr.s_addr = HTONL(CONFIG_EXAMPLES_DHCPD_IPADDR); uip_sethostaddr("eth0", &addr); /* Set up the default router address */ - addr.s_addr = HTONL(CONFIG_EXAMPLE_DHCPD_DRIPADDR); + addr.s_addr = HTONL(CONFIG_EXAMPLES_DHCPD_DRIPADDR); uip_setdraddr("eth0", &addr); /* Setup the subnet mask */ - addr.s_addr = HTONL(CONFIG_EXAMPLE_DHCPD_NETMASK); + addr.s_addr = HTONL(CONFIG_EXAMPLES_DHCPD_NETMASK); uip_setnetmask("eth0", &addr); /* Then start the server */ |