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

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

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

revision 1.10 by jani, Tue Jan 14 08:22:05 2003 UTC revision 1.11 by jani, Tue Jan 14 08:37:01 2003 UTC
# Line 425  tcp_output(struct tcp_pcb *pcb) Line 425  tcp_output(struct tcp_pcb *pcb)
425        
426    while(seg != NULL &&    while(seg != NULL &&
427          ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {          ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
     pcb->rtime = 0;  
428  #if TCP_CWND_DEBUG  #if TCP_CWND_DEBUG
429      DEBUGF(TCP_CWND_DEBUG, ("tcp_output: snd_wnd %lu, cwnd %lu, wnd %lu, effwnd %lu, seq %lu, ack %lu, i%d\n",      DEBUGF(TCP_CWND_DEBUG, ("tcp_output: snd_wnd %lu, cwnd %lu, wnd %lu, effwnd %lu, seq %lu, ack %lu, i%d\n",
430                              pcb->snd_wnd, pcb->cwnd, wnd,                              pcb->snd_wnd, pcb->cwnd, wnd,
# Line 458  tcp_output(struct tcp_pcb *pcb) Line 457  tcp_output(struct tcp_pcb *pcb)
457          for(useg = pcb->unacked; useg->next != NULL; useg = useg->next);          for(useg = pcb->unacked; useg->next != NULL; useg = useg->next);
458          useg->next = seg;          useg->next = seg;
459        }        }
       /*      seg->rtime = 0;*/        
460      } else {      } else {
461        tcp_seg_free(seg);        tcp_seg_free(seg);
462      }      }
# Line 583  tcp_rexmit(struct tcp_pcb *pcb) Line 581  tcp_rexmit(struct tcp_pcb *pcb)
581    pcb->snd_nxt = ntohl(pcb->unsent->tcphdr->seqno);    pcb->snd_nxt = ntohl(pcb->unsent->tcphdr->seqno);
582        
583    ++pcb->nrtx;    ++pcb->nrtx;
   pcb->rtime = 0;  
584        
585    /* Don't take any rtt measurements after retransmitting. */        /* Don't take any rtt measurements after retransmitting. */    
586    pcb->rttest = 0;    pcb->rttest = 0;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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