From 9f08d09ae1fdeaf61f48273907335f244ad62633 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Fri, 20 May 2016 14:19:50 +0800 Subject: [PATCH] [lwIP] merge TCP_OVERSIZE code. --- components/net/lwip-1.4.1/src/core/tcp_out.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/net/lwip-1.4.1/src/core/tcp_out.c b/components/net/lwip-1.4.1/src/core/tcp_out.c index ee19fe06f6..1db3fae03f 100644 --- a/components/net/lwip-1.4.1/src/core/tcp_out.c +++ b/components/net/lwip-1.4.1/src/core/tcp_out.c @@ -1248,6 +1248,12 @@ tcp_rexmit_rto(struct tcp_pcb *pcb) for (seg = pcb->unacked; seg->next != NULL; seg = seg->next); /* concatenate unsent queue after unacked queue */ seg->next = pcb->unsent; + #if TCP_OVERSIZE && TCP_OVERSIZE_DBGCHECK + /* if last unsent changed, we need to update unsent_oversize */ + if (pcb->unsent == NULL) { + pcb->unsent_oversize = seg->oversize_left; + } + #endif /* TCP_OVERSIZE && TCP_OVERSIZE_DBGCHECK*/ /* unsent queue is the concatenated queue (of unacked, unsent) */ pcb->unsent = pcb->unacked; /* unacked queue is now empty */