Skip to content
Snippets Groups Projects
Commit f59661ad authored by patacongo's avatar patacongo
Browse files

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
parent 1aecda5a
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,10 @@ GNU Toolchain Options
NOTE 2: The devkitARM toolchain includes a version of MSYS make. Make sure that
the paths to Cygwin's /bin and /usr/bin directories appear BEFORE the devkitARM
path or will get the wrong version of make.
path or will get the wrong version of make. It has been reported to me that the
devkitARM will require an lower optimization level of -O1. Currently all of the
Make.def files have -O2 for devkitARM -- if you are using this toolchain, you may
need to review these settings.
CodeSourcery on Linux
^^^^^^^^^^^^^^^^^^^^^
......
/****************************************************************************
* 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment