diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-12 16:33:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-12 16:33:55 +0000 |
commit | d9580c5a997f0d33b216956db4a05ad784aaa065 (patch) | |
tree | 32169240d5ecd36f538df1ec91089c52e96f0c68 /nuttx/include/net/uip/uip-lib.h | |
parent | e6f93f774080d42c3f954a862709d047df2d7e7a (diff) | |
download | px4-nuttx-d9580c5a997f0d33b216956db4a05ad784aaa065.tar.gz px4-nuttx-d9580c5a997f0d33b216956db4a05ad784aaa065.tar.bz2 px4-nuttx-d9580c5a997f0d33b216956db4a05ad784aaa065.zip |
Add SLIP test configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3371 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/net/uip/uip-lib.h')
-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 d0e5ac1d6..813245953 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); |