summaryrefslogtreecommitdiff
path: root/nuttx/include/net/uip/uip.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-02 20:42:01 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-02 20:42:01 +0000
commit8a2d54981a1c1ee6563f3444cffc1d2d4784156e (patch)
tree0274aa01d9ff373e4ff01ae8b88cf03de27800da /nuttx/include/net/uip/uip.h
parente7d4d115566c113f2cba32f16857ea5e90c03be0 (diff)
downloadpx4-nuttx-8a2d54981a1c1ee6563f3444cffc1d2d4784156e.tar.gz
px4-nuttx-8a2d54981a1c1ee6563f3444cffc1d2d4784156e.tar.bz2
px4-nuttx-8a2d54981a1c1ee6563f3444cffc1d2d4784156e.zip
Add uIP access to ICMP protocol
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@869 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/net/uip/uip.h')
-rw-r--r--nuttx/include/net/uip/uip.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/include/net/uip/uip.h b/nuttx/include/net/uip/uip.h
index 08f2c14a3..54a94bf98 100644
--- a/nuttx/include/net/uip/uip.h
+++ b/nuttx/include/net/uip/uip.h
@@ -98,6 +98,11 @@
* UIP_TIMEDOUT IN: The connection has been aborted due to too many
* retransmissions. (TCP only)
* OUT: Not used
+ * UIP_ECHOREPLY IN: An ICMP Echo Reply has been received. Used to support
+ * ICMP ping from applications. (ICMP only)
+ * OUT: Cleared (only) by the application logic to indicate
+ * that the reply was processed, suppressing further
+ * attempts to process the reply.
*/
#define UIP_ACKDATA (1 << 0)
@@ -109,8 +114,8 @@
#define UIP_ABORT (1 << 6)
#define UIP_CONNECTED (1 << 7)
#define UIP_TIMEDOUT (1 << 8)
+#define UIP_ECHOREPLY (1 << 9)
-#define UIP_DATA_EVENTS (UIP_ACKDATA|UIP_NEWDATA|UIP_REXMIT|UIP_POLL)
#define UIP_CONN_EVENTS (UIP_CLOSE|UIP_ABORT|UIP_CONNECTED|UIP_TIMEDOUT)
/* The buffer size available for user data in the d_buf buffer.