diff --git a/examples/uip/main.c b/examples/uip/main.c index 39f451a26cf..226e75c6949 100644 --- a/examples/uip/main.c +++ b/examples/uip/main.c @@ -1,7 +1,7 @@ /**************************************************************************** * examples/uip/main.c * - * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009-2010 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Based on uIP which also has a BSD style license: @@ -57,6 +57,9 @@ #include #include #include +#ifdef CONFIG_EXAMPLE_UIP_DHCPC +#include +#endif /* Here we include the header file for the application(s) we use in * our project as defined in the config//defconfig file @@ -193,6 +196,7 @@ int user_start(int argc, char *argv[]) resolv_conf(&ds.dnsaddr); } dhcpc_close(handle); + printf("IP: %s\n", inet_ntoa(ds.ipaddr)); } #endif