summaryrefslogtreecommitdiff
path: root/nuttx/net/netdev-find.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-16 22:12:04 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-16 22:12:04 +0000
commit9e15c4be04516ac9957f33ea179a188cc2a081a0 (patch)
tree77fe706483352a68b683ecde64215d54cbc89f4f /nuttx/net/netdev-find.c
parent4077a70fc256a7dd65febe986f176b8ac62091fc (diff)
downloadpx4-nuttx-9e15c4be04516ac9957f33ea179a188cc2a081a0.tar.gz
px4-nuttx-9e15c4be04516ac9957f33ea179a188cc2a081a0.tar.bz2
px4-nuttx-9e15c4be04516ac9957f33ea179a188cc2a081a0.zip
Associate address with network driver; implement ioctl calls to set addresses
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@345 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/netdev-find.c')
-rw-r--r--nuttx/net/netdev-find.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/nuttx/net/netdev-find.c b/nuttx/net/netdev-find.c
index c783f8c6f..a975569d2 100644
--- a/nuttx/net/netdev-find.c
+++ b/nuttx/net/netdev-find.c
@@ -41,6 +41,7 @@
#if defined(CONFIG_NET) && CONFIG_NSOCKET_DESCRIPTORS > 0
#include <sys/types.h>
+#include <string.h>
#include <errno.h>
#include <net/uip/uip-arch.h>
@@ -59,16 +60,10 @@
* Private Data
****************************************************************************/
-static int g_next_devnum = 0;
-
/****************************************************************************
* Public Data
****************************************************************************/
-/* List of registered ethernet device drivers */
-struct uip_driver_s *g_netdevices;
-sem_t g_netdev_sem;
-
/****************************************************************************
* Private Functions
****************************************************************************/