diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-03-12 16:33:55 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-03-12 16:33:55 +0000 |
commit | 6d6aebced7e7a870887351740c7223c030f52a30 (patch) | |
tree | 32169240d5ecd36f538df1ec91089c52e96f0c68 /nuttx/include/net | |
parent | 208de7e00279e9bf43eb2fad167749804c9d36af (diff) |
Add SLIP test configuration
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3371 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include/net')
-rw-r--r-- | nuttx/include/net/uip/uip-lib.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nuttx/include/net/uip/uip-lib.h b/nuttx/include/net/uip/uip-lib.h index d0e5ac1d66..8132459530 100644 --- a/nuttx/include/net/uip/uip-lib.h +++ b/nuttx/include/net/uip/uip-lib.h @@ -3,7 +3,7 @@ * Various non-standard APIs to support netutils. All non-standard and * intended only for internal use. * - * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Some of these APIs derive from uIP but all of them use the uip_ prefix @@ -54,7 +54,9 @@ #include <stdint.h> #include <stdbool.h> #include <pthread.h> + #include <netinet/in.h> +#include <net/uip/uipopt.h> /**************************************************************************** * Pre-processor Definitions @@ -93,10 +95,14 @@ extern bool uiplib_ipaddrconv(const char *addrstr, uint8_t *addr); -/* Get and set IP/MAC addresses */ +/* Get and set IP/MAC addresses (Ethernet L2 only) */ +#ifdef CONFIG_NET_ETHERNET extern int uip_setmacaddr(const char *ifname, const uint8_t *macaddr); extern int uip_getmacaddr(const char *ifname, uint8_t *macaddr); +#endif + +/* IP address support */ #ifdef CONFIG_NET_IPv6 extern int uip_gethostaddr(const char *ifname, struct in6_addr *addr); |