/[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.22.2.2 by likewise, Wed May 14 14:38:28 2003 UTC revision 1.22.2.3 by likewise, Wed Jun 4 10:18:38 2003 UTC
# Line 293  tcp_bind(struct tcp_pcb *pcb, struct ip_ Line 293  tcp_bind(struct tcp_pcb *pcb, struct ip_
293  static err_t  static err_t
294  tcp_accept_null(void *arg, struct tcp_pcb *pcb, err_t err)  tcp_accept_null(void *arg, struct tcp_pcb *pcb, err_t err)
295  {  {
296      if (arg || pcb || err);
297    return ERR_ABRT;    return ERR_ABRT;
298  }  }
299  #endif /* LWIP_CALLBACK_API */  #endif /* LWIP_CALLBACK_API */
# Line 466  tcp_slowtmr(void) Line 467  tcp_slowtmr(void)
467    u32_t eff_wnd;    u32_t eff_wnd;
468    u8_t pcb_remove;      /* flag if a PCB should be removed */    u8_t pcb_remove;      /* flag if a PCB should be removed */
469    err_t err;    err_t err;
470      
471    err = ERR_OK;    err = ERR_OK;
472    
473    ++tcp_ticks;    ++tcp_ticks;
474      
475    /* Steps through all of the active PCBs. */    /* Steps through all of the active PCBs. */
476    prev = NULL;    prev = NULL;
477    pcb = tcp_active_pcbs;    pcb = tcp_active_pcbs;
# Line 494  tcp_slowtmr(void) Line 495  tcp_slowtmr(void)
495        ++pcb->rtime;        ++pcb->rtime;
496        if (pcb->unacked != NULL && pcb->rtime >= pcb->rto) {        if (pcb->unacked != NULL && pcb->rtime >= pcb->rto) {
497    
498          /* Time for a retransmission. */          /* Time for a retransmission. */
499          DEBUGF(TCP_RTO_DEBUG, ("tcp_slowtmr: rtime %u pcb->rto %u\n",          DEBUGF(TCP_RTO_DEBUG, ("tcp_slowtmr: rtime %u pcb->rto %u\n",
500                                 pcb->rtime, pcb->rto));            pcb->rtime, pcb->rto));
501    
502          /* Double retransmission time-out unless we are trying to          /* Double retransmission time-out unless we are trying to
503             connect to somebody (i.e., we are in SYN_SENT). */             connect to somebody (i.e., we are in SYN_SENT). */
# Line 513  tcp_slowtmr(void) Line 514  tcp_slowtmr(void)
514            pcb->ssthresh = pcb->mss * 2;            pcb->ssthresh = pcb->mss * 2;
515          }          }
516          pcb->cwnd = pcb->mss;          pcb->cwnd = pcb->mss;
   
517          DEBUGF(TCP_CWND_DEBUG, ("tcp_slowtmr: cwnd %u ssthresh %u\n",          DEBUGF(TCP_CWND_DEBUG, ("tcp_slowtmr: cwnd %u ssthresh %u\n",
518                                  pcb->cwnd, pcb->ssthresh));                                  pcb->cwnd, pcb->ssthresh));
519        }        }
520      }      }
             
521      /* Check if this PCB has stayed too long in FIN-WAIT-2 */      /* Check if this PCB has stayed too long in FIN-WAIT-2 */
522      if (pcb->state == FIN_WAIT_2) {      if (pcb->state == FIN_WAIT_2) {
523        if ((u32_t)(tcp_ticks - pcb->tmr) >        if ((u32_t)(tcp_ticks - pcb->tmr) >

Legend:
Removed from v.1.22.2.2  
changed lines
  Added in v.1.22.2.3

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