summaryrefslogtreecommitdiff
path: root/nuttx/net/udp/udp.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/udp/udp.h')
-rw-r--r--nuttx/net/udp/udp.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/nuttx/net/udp/udp.h b/nuttx/net/udp/udp.h
index 305f28b37..2f193dea0 100644
--- a/nuttx/net/udp/udp.h
+++ b/nuttx/net/udp/udp.h
@@ -47,6 +47,10 @@
#include <nuttx/net/ip.h>
+#ifdef CONFIG_NET_UDP_READAHEAD
+# include <nuttx/net/iob.h>
+#endif
+
#ifdef CONFIG_NET_UDP
/****************************************************************************
@@ -77,6 +81,16 @@ struct udp_conn_s
uint8_t ttl; /* Default time-to-live */
uint8_t crefs; /* Reference counts on this instance */
+#ifdef CONFIG_NET_UDP_READAHEAD
+ /* Read-ahead buffering.
+ *
+ * readahead - A singly linked list of type struct iob_qentry_s
+ * where the UDP/IP read-ahead data is retained.
+ */
+
+ struct iob_queue_s readahead; /* Read-ahead buffering */
+#endif
+
/* Defines the list of UDP callbacks */
FAR struct devif_callback_s *list;