tcp: use tcp_ack_now rather than manually setting TF_ACK_NOW

This commit is contained in:
Joel Cunningham 2017-08-09 10:13:41 -05:00
parent 90873d6c71
commit ba7a3204cb
3 changed files with 3 additions and 3 deletions

View File

@ -1921,7 +1921,7 @@ tcp_pcb_remove(struct tcp_pcb **pcblist, struct tcp_pcb *pcb)
if ((pcb->state != TIME_WAIT) &&
(pcb->state != LISTEN) &&
(pcb->flags & TF_ACK_DELAY)) {
pcb->flags |= TF_ACK_NOW;
tcp_ack_now(pcb);
tcp_output(pcb);
}

View File

@ -708,7 +708,7 @@ tcp_timewait_input(struct tcp_pcb *pcb)
if ((tcplen > 0)) {
/* Acknowledge data, FIN or out-of-window SYN */
pcb->flags |= TF_ACK_NOW;
tcp_ack_now(pcb);
tcp_output(pcb);
}
return;

View File

@ -446,7 +446,7 @@ struct tcp_seg *tcp_seg_copy(struct tcp_seg *seg);
do { \
if((pcb)->flags & TF_ACK_DELAY) { \
tcp_clear_flags(pcb, TF_ACK_DELAY); \
(pcb)->flags |= TF_ACK_NOW; \
tcp_ack_now(pcb); \
} \
else { \
(pcb)->flags |= TF_ACK_DELAY; \