瀏覽代碼

[lwIP] merge TCP_OVERSIZE code.

Bernard Xiong 9 年之前
父節點
當前提交
9f08d09ae1
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      components/net/lwip-1.4.1/src/core/tcp_out.c

+ 6 - 0
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 */