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 7,705 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
if (tiwin > rack->r_ctl.rc_high_rwnd) | if (tiwin > rack->r_ctl.rc_high_rwnd) | ||||
rack->r_ctl.rc_high_rwnd = tiwin; | rack->r_ctl.rc_high_rwnd = tiwin; | ||||
/* | /* | ||||
* TCP ECN processing. XXXJTL: If we ever use ECN, we need to move | * TCP ECN processing. XXXJTL: If we ever use ECN, we need to move | ||||
* this to occur after we've validated the segment. | * this to occur after we've validated the segment. | ||||
*/ | */ | ||||
if (tp->t_flags2 & TF2_ECN_PERMIT) { | if (tp->t_flags2 & TF2_ECN_PERMIT) { | ||||
if (thflags & TH_CWR) | if (thflags & TH_CWR) { | ||||
tp->t_flags2 &= ~TF2_ECN_SND_ECE; | tp->t_flags2 &= ~TF2_ECN_SND_ECE; | ||||
tp->t_flags |= TF_ACKNOW; | |||||
} | |||||
switch (iptos & IPTOS_ECN_MASK) { | switch (iptos & IPTOS_ECN_MASK) { | ||||
case IPTOS_ECN_CE: | case IPTOS_ECN_CE: | ||||
tp->t_flags2 |= TF2_ECN_SND_ECE; | tp->t_flags2 |= TF2_ECN_SND_ECE; | ||||
TCPSTAT_INC(tcps_ecn_ce); | TCPSTAT_INC(tcps_ecn_ce); | ||||
break; | break; | ||||
case IPTOS_ECN_ECT0: | case IPTOS_ECN_ECT0: | ||||
TCPSTAT_INC(tcps_ecn_ect0); | TCPSTAT_INC(tcps_ecn_ect0); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 2,844 Lines • Show Last 20 Lines |