/[lwip]/lwip/src/core/tcp.c
ViewVC logotype

Diff of /lwip/src/core/tcp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31.2.5 by kieranm, Mon Sep 22 09:38:10 2003 UTC revision 1.31.2.6 by jani, Wed Nov 5 08:32:25 2003 UTC
# Line 442  tcp_listen(struct tcp_pcb *pcb) Line 442  tcp_listen(struct tcp_pcb *pcb)
442  void  void
443  tcp_recved(struct tcp_pcb *pcb, u16_t len)  tcp_recved(struct tcp_pcb *pcb, u16_t len)
444  {  {
445    pcb->rcv_wnd += len;    if ((u32_t)pcb->rcv_wnd + len > TCP_WND) {
   if (pcb->rcv_wnd > TCP_WND) {  
446      pcb->rcv_wnd = TCP_WND;      pcb->rcv_wnd = TCP_WND;
447      } else {
448        pcb->rcv_wnd += len;
449    }    }
450    if (!(pcb->flags & TF_ACK_DELAY) &&    if (!(pcb->flags & TF_ACK_DELAY) &&
451       !(pcb->flags & TF_ACK_NOW)) {       !(pcb->flags & TF_ACK_NOW)) {

Legend:
Removed from v.1.31.2.5  
changed lines
  Added in v.1.31.2.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26