Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_output.c
Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | #endif | ||||
INP_WLOCK_ASSERT(tp->t_inpcb); | INP_WLOCK_ASSERT(tp->t_inpcb); | ||||
#ifdef TCP_OFFLOAD | #ifdef TCP_OFFLOAD | ||||
if (tp->t_flags & TF_TOE) | if (tp->t_flags & TF_TOE) | ||||
return (tcp_offload_output(tp)); | return (tcp_offload_output(tp)); | ||||
#endif | #endif | ||||
/* | /* | ||||
* For TFO connections in SYN_RECEIVED, only allow the initial | * For TFO connections in SYN_SENT or SYN_RECEIVED, | ||||
jtl: It looks like the comment is now stale. | |||||
Not Done Inline ActionsYou are correct. I updated the comments. tuexen: You are correct. I updated the comments. | |||||
* SYN|ACK and those sent by the retransmit timer. | * only allow the initial SYN or SYN|ACK and those sent | ||||
* by the retransmit timer. | |||||
*/ | */ | ||||
if (IS_FASTOPEN(tp->t_flags) && | if (IS_FASTOPEN(tp->t_flags) && | ||||
(tp->t_state == TCPS_SYN_RECEIVED) && | ((tp->t_state == TCPS_SYN_SENT) || | ||||
SEQ_GT(tp->snd_max, tp->snd_una) && /* initial SYN|ACK sent */ | (tp->t_state == TCPS_SYN_RECEIVED)) && | ||||
SEQ_GT(tp->snd_max, tp->snd_una) && /* initial SYN or SYN|ACK sent */ | |||||
(tp->snd_nxt != tp->snd_una)) /* not a retransmit */ | (tp->snd_nxt != tp->snd_una)) /* not a retransmit */ | ||||
return (0); | return (0); | ||||
/* | /* | ||||
* Determine length of data that should be transmitted, | * Determine length of data that should be transmitted, | ||||
* and flags that will be used. | * and flags that will be used. | ||||
* If there is some data or critical controls (SYN, RST) | * If there is some data or critical controls (SYN, RST) | ||||
* to send, then transmit; otherwise, investigate further. | * to send, then transmit; otherwise, investigate further. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 1,755 Lines • Show Last 20 Lines |
It looks like the comment is now stale.