Changeset View
Changeset View
Standalone View
Standalone View
head/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 6,651 Lines • ▼ Show 20 Lines | if (tp->t_state == TCPS_SYN_SENT && (thflags & TH_SYN)) { | ||||
tp->ts_recent_age = cts; | tp->ts_recent_age = cts; | ||||
} | } | ||||
if (to.to_flags & TOF_MSS) | if (to.to_flags & TOF_MSS) | ||||
tcp_mss(tp, to.to_mss); | tcp_mss(tp, to.to_mss); | ||||
if ((tp->t_flags & TF_SACK_PERMIT) && | if ((tp->t_flags & TF_SACK_PERMIT) && | ||||
(to.to_flags & TOF_SACKPERM) == 0) | (to.to_flags & TOF_SACKPERM) == 0) | ||||
tp->t_flags &= ~TF_SACK_PERMIT; | tp->t_flags &= ~TF_SACK_PERMIT; | ||||
if (IS_FASTOPEN(tp->t_flags)) { | if (IS_FASTOPEN(tp->t_flags)) { | ||||
if (to.to_flags & TOF_FASTOPEN) | if (to.to_flags & TOF_FASTOPEN) { | ||||
tcp_fastopen_update_cache(tp, to.to_mss, | uint16_t mss; | ||||
to.to_tfo_len, to.to_tfo_cookie); | |||||
if (to.to_flags & TOF_MSS) | |||||
mss = to.to_mss; | |||||
else | else | ||||
if ((tp->t_inpcb->inp_vflag & INP_IPV6) != 0) | |||||
mss = TCP6_MSS; | |||||
else | |||||
mss = TCP_MSS; | |||||
tcp_fastopen_update_cache(tp, mss, | |||||
to.to_tfo_len, to.to_tfo_cookie); | |||||
} else | |||||
tcp_fastopen_disable_path(tp); | tcp_fastopen_disable_path(tp); | ||||
} | } | ||||
} | } | ||||
/* | /* | ||||
* At this point we are at the initial call. Here we decide | * At this point we are at the initial call. Here we decide | ||||
* if we are doing RACK or not. We do this by seeing if | * if we are doing RACK or not. We do this by seeing if | ||||
* TF_SACK_PERMIT is set, if not rack is *not* possible and | * TF_SACK_PERMIT is set, if not rack is *not* possible and | ||||
* we switch to the default code. | * we switch to the default code. | ||||
▲ Show 20 Lines • Show All 2,467 Lines • Show Last 20 Lines |