diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-10-31 00:13:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-10-31 00:13:07 +0000 |
commit | c6824dd08a9683fdaa29717fd72da457f41d268a (patch) | |
tree | 63b02e283abbe45f867db179b03e9fb1c3db1a66 /nuttx/examples | |
parent | 1e60556b89305022b6cefe9bb28badb51dc15620 (diff) | |
download | px4-nuttx-c6824dd08a9683fdaa29717fd72da457f41d268a.tar.gz px4-nuttx-c6824dd08a9683fdaa29717fd72da457f41d268a.tar.bz2 px4-nuttx-c6824dd08a9683fdaa29717fd72da457f41d268a.zip |
dhcpc debug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@357 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples')
-rw-r--r-- | nuttx/examples/uip/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
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/<board-name>/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 <net/uip/smtp.h> @@ -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(); |