Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_stacks/rack.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 13,432 Lines • ▼ Show 20 Lines | if (tp->t_rxtshift >= 1) { | ||||
flags |= TH_ECE | TH_CWR; | flags |= TH_ECE | TH_CWR; | ||||
} | } | ||||
/* Handle parallel SYN for ECN */ | /* Handle parallel SYN for ECN */ | ||||
if ((tp->t_state == TCPS_SYN_RECEIVED) && | if ((tp->t_state == TCPS_SYN_RECEIVED) && | ||||
(tp->t_flags2 & TF2_ECN_SND_ECE)) { | (tp->t_flags2 & TF2_ECN_SND_ECE)) { | ||||
flags |= TH_ECE; | flags |= TH_ECE; | ||||
tp->t_flags2 &= ~TF2_ECN_SND_ECE; | tp->t_flags2 &= ~TF2_ECN_SND_ECE; | ||||
} | } | ||||
if (tp->t_state == TCPS_ESTABLISHED && | if (TCPS_HAVEESTABLISHED(tp->t_state) && | ||||
(tp->t_flags2 & TF2_ECN_PERMIT)) { | (tp->t_flags2 & TF2_ECN_PERMIT)) { | ||||
/* | /* | ||||
* If the peer has ECN, mark data packets with ECN capable | * If the peer has ECN, mark data packets with ECN capable | ||||
* transmission (ECT). Ignore pure ack packets, | * transmission (ECT). Ignore pure ack packets, | ||||
* retransmissions. | * retransmissions. | ||||
*/ | */ | ||||
if (len > 0 && SEQ_GEQ(tp->snd_nxt, tp->snd_max) && | if (len > 0 && SEQ_GEQ(tp->snd_nxt, tp->snd_max) && | ||||
(sack_rxmit == 0)) { | (sack_rxmit == 0)) { | ||||
▲ Show 20 Lines • Show All 1,532 Lines • Show Last 20 Lines |