summaryrefslogtreecommitdiff
path: root/nuttx/include/net/uip/uip-arch.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-16 17:46:25 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-16 17:46:25 +0000
commit4077a70fc256a7dd65febe986f176b8ac62091fc (patch)
tree6f0e34d559c8fa2f07c686043df3494cd7fdcff2 /nuttx/include/net/uip/uip-arch.h
parent42027d080b72b8198072e7dc3933d8b70b6b40a5 (diff)
downloadpx4-nuttx-4077a70fc256a7dd65febe986f176b8ac62091fc.tar.gz
px4-nuttx-4077a70fc256a7dd65febe986f176b8ac62091fc.tar.bz2
px4-nuttx-4077a70fc256a7dd65febe986f176b8ac62091fc.zip
Add basic structure to support netdevice ioctls
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@344 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/net/uip/uip-arch.h')
-rw-r--r--nuttx/include/net/uip/uip-arch.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/nuttx/include/net/uip/uip-arch.h b/nuttx/include/net/uip/uip-arch.h
index 56a794b3c..e54956888 100644
--- a/nuttx/include/net/uip/uip-arch.h
+++ b/nuttx/include/net/uip/uip-arch.h
@@ -42,7 +42,9 @@
#ifndef __UIP_ARCH_H
#define __UIP_ARCH_H
+#include <nuttx/config.h>
#include <sys/types.h>
+#include <sys/ioctl.h>
#include <net/uip/uip.h>
/****************************************************************************
@@ -84,9 +86,22 @@
struct uip_driver_s
{
- /* The uIP packet buffer.
- *
- * The d_buf array is used to hold incoming and outgoing
+ /* This link is used to maintain a single-linked list of ethernet drivers.
+ * Must be the first field in the structure due to blink type casting.
+ */
+
+#if CONFIG_NSOCKET_DESCRIPTORS > 0
+ FAR struct uip_driver_s *flink;
+
+ /* This is the name of network device assigned when netdev_register was called.
+ * This name is only used to support socket ioctl lookups by device name
+ * Examples: "eth0"
+ */
+
+ char d_ifname[IFNAMSIZ];
+#endif
+
+ /* The d_buf array is used to hold incoming and outgoing
* packets. The device driver should place incoming data into this
* buffer. When sending data, the device driver should read the link
* level headers and the TCP/IP headers from this buffer. The size of