diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-05 21:44:36 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-05 21:44:36 +0000 |
commit | 805d4ee67e550bdcbacc91bc02089071fa727f34 (patch) | |
tree | a4b27d006b6da151fb421e164820f418b41f0742 /nuttx/examples/nsh | |
parent | d468f0c885a35b1a848a8c1edc5ebfa6a9b8c461 (diff) | |
download | px4-nuttx-805d4ee67e550bdcbacc91bc02089071fa727f34.tar.gz px4-nuttx-805d4ee67e550bdcbacc91bc02089071fa727f34.tar.bz2 px4-nuttx-805d4ee67e550bdcbacc91bc02089071fa727f34.zip |
Misc changes for DHCPC support with NSH
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2822 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh')
-rw-r--r-- | nuttx/examples/nsh/nsh_telnetd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/examples/nsh/nsh_telnetd.c b/nuttx/examples/nsh/nsh_telnetd.c index a3eb4965d..546b88ce7 100644 --- a/nuttx/examples/nsh/nsh_telnetd.c +++ b/nuttx/examples/nsh/nsh_telnetd.c @@ -1,7 +1,7 @@ /**************************************************************************** * examples/nsh/nsh_telnetd.c * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2010 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * This is a leverage of similar logic from uIP: @@ -59,6 +59,9 @@ #include <net/if.h> #include <net/uip/uip-lib.h> +#if defined(CONFIG_EXAMPLES_NSH_DHCPC) +# include <net/uip/dhcpc.h> +#endif #include "nsh.h" @@ -782,6 +785,9 @@ static void nsh_telnetexit(FAR struct nsh_vtbl_s *vtbl) int nsh_telnetmain(int argc, char *argv[]) { struct in_addr addr; +#if defined(CONFIG_EXAMPLES_NSH_DHCPC) + FAR void *handle; +#endif #if defined(CONFIG_EXAMPLES_NSH_DHCPC) || defined(CONFIG_EXAMPLES_NSH_NOMAC) uint8_t mac[IFHWADDRLEN]; #endif |