summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-09 23:48:31 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-09 23:48:31 +0000
commitcfb41fb64f57f0c6864254c6048f8d2967b6f60c (patch)
treefbe8cee3c3b95034c44b7a268f9358e36172b7ad
parent029001d3f18801589c585b190fdc9655bec8e545 (diff)
downloadpx4-nuttx-cfb41fb64f57f0c6864254c6048f8d2967b6f60c.tar.gz
px4-nuttx-cfb41fb64f57f0c6864254c6048f8d2967b6f60c.tar.bz2
px4-nuttx-cfb41fb64f57f0c6864254c6048f8d2967b6f60c.zip
Remove unused flag bit
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@341 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/include/net/uip/uip.h5
-rw-r--r--nuttx/net/uip/uip.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/nuttx/include/net/uip/uip.h b/nuttx/include/net/uip/uip.h
index 34fd0192e..35d20cabf 100644
--- a/nuttx/include/net/uip/uip.h
+++ b/nuttx/include/net/uip/uip.h
@@ -83,7 +83,6 @@
* new connection for it, or an active connection has been
* successfully established. */
#define UIP_TIMEDOUT (1 << 7) /* The connection has been aborted due to too many retransmissions. */
-#define UIP_APPTIMEOUT (1 << 8) /* Application time limit has elapsed */
/* The TCP states used in the uip_conn->tcpstateflags. */
@@ -496,14 +495,14 @@ extern struct uip_udp_conn *uip_udp_conn;
extern struct uip_stats uip_stat;
-/* uint16 uip_flags:
+/* uint8 uip_flags:
*
* When the application is called, uip_flags will contain the flags
* that are defined in this file. Please read below for more
* infomation.
*/
-extern uint16 uip_flags;
+extern uint8 uip_flags;
#if UIP_FIXEDADDR
extern const uip_ipaddr_t uip_hostaddr, uip_netmask, uip_draddr;
diff --git a/nuttx/net/uip/uip.c b/nuttx/net/uip/uip.c
index b607fecf7..bf4d94733 100644
--- a/nuttx/net/uip/uip.c
+++ b/nuttx/net/uip/uip.c
@@ -175,7 +175,7 @@ uint16 uip_urglen, uip_surglen;
uint16 uip_len, uip_slen; /* The uip_len is either 8 or 16 bits, depending
* on the maximum packet size. */
-uint16 uip_flags; /* The uip_flags variable is used for communication
+uint8 uip_flags; /* The uip_flags variable is used for communication
* between the TCP/IP stack and the application
* program. */
struct uip_conn *uip_conn; /* uip_conn always points to the current connection. */