From c6824dd08a9683fdaa29717fd72da457f41d268a Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 31 Oct 2007 00:13:07 +0000 Subject: dhcpc debug git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@357 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/examples/uip/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nuttx/examples/uip/main.c') diff --git a/nuttx/examples/uip/main.c b/nuttx/examples/uip/main.c index 9cddb0ab9..f71a9a6dc 100644 --- a/nuttx/examples/uip/main.c +++ b/nuttx/examples/uip/main.c @@ -57,7 +57,7 @@ * our project as defined in the config//defconfig file */ -#define CONFIG_EXAMPLE_UIP_WEBSERVER 1 /* For now */ +#define CONFIG_EXAMPLE_UIP_DHCPC 1 /* For now */ #if defined(CONFIG_EXAMPLE_UIP_SMTP) # include @@ -135,6 +135,7 @@ int user_start(int argc, char *argv[]) uip_getmacaddr("eth0", mac); #endif +#if !defined(CONFIG_EXAMPLE_UIP_DHCPC) /* Set up our host address */ uip_ipaddr(addr.s_addr, 192, 168, 0, 128 ); @@ -149,6 +150,7 @@ int user_start(int argc, char *argv[]) uip_ipaddr(addr.s_addr, 255, 255, 255, 0); uip_setnetmask("eth0", &addr); +#endif #if defined(CONFIG_EXAMPLE_UIP_WEBSERVER) httpd_init(); -- cgit v1.2.3