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 */ |
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; |
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). */ |
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) > |