summaryrefslogtreecommitdiff
path: root/nuttx/net/uip
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-11-27 22:50:27 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-11-27 22:50:27 +0000
commit2268aea37d7eca8d6aeeaa6c3f540088329ed3b1 (patch)
treea06d999bbc5b095dee2d93108b2dae374f760d42 /nuttx/net/uip
parentdb7df42a1e4787dccdae1c6da52923231436417f (diff)
downloadpx4-nuttx-2268aea37d7eca8d6aeeaa6c3f540088329ed3b1.tar.gz
px4-nuttx-2268aea37d7eca8d6aeeaa6c3f540088329ed3b1.tar.bz2
px4-nuttx-2268aea37d7eca8d6aeeaa6c3f540088329ed3b1.zip
More TCP sequence changes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3138 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/uip')
-rw-r--r--nuttx/net/uip/uip_tcpappsend.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/nuttx/net/uip/uip_tcpappsend.c b/nuttx/net/uip/uip_tcpappsend.c
index 0bd44a653..9a09e0997 100644
--- a/nuttx/net/uip/uip_tcpappsend.c
+++ b/nuttx/net/uip/uip_tcpappsend.c
@@ -134,25 +134,11 @@ void uip_tcpappsend(struct uip_driver_s *dev, struct uip_conn *conn,
if (dev->d_sndlen > 0)
{
- /* If the connection has acknowledged data, the conn->unacked count
- * should be discarded.
- */
-
- if ((result & UIP_ACKDATA) != 0)
- {
- conn->unacked = 0;
- }
-
/* Remember how much data we send out now so that we know
- * when everything has been acknowledged. No attempt is made
- * here to keep track of how much outstanding, un-acked data
- * there is. That is handled in the TCP send() logic. Here
- * need the conn->unacked to be the same as the size of the packet
- * to be sent.
- *
- * Just increment the amount of data sent. This will be needed
- * in sequence number calculations and we know that this is not
- * a re-tranmission. Retransmissions do not go through this path.
+ * when everything has been acknowledged. Just increment the amount
+ * of data sent. This will be needed in sequence number calculations
+ * and we know that this is not a re-tranmission. Retransmissions
+ * do not go through this path.
*/
conn->unacked += dev->d_sndlen;