Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_input.c
Show First 20 Lines • Show All 1,668 Lines • ▼ Show 20 Lines | if (to.to_flags & TOF_TS) { | ||||
tp->ts_recent_age = tcp_ts_getticks(); | tp->ts_recent_age = tcp_ts_getticks(); | ||||
} | } | ||||
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); | ||||
} | } | ||||
} | } | ||||
/* | /* | ||||
* If timestamps were negotiated during SYN/ACK they should | * If timestamps were negotiated during SYN/ACK they should | ||||
* appear on every segment during this session and vice versa. | * appear on every segment during this session and vice versa. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 2,120 Lines • Show Last 20 Lines |