Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_subr.c
Show First 20 Lines • Show All 3,432 Lines • ▼ Show 20 Lines | if (inp->inp_flags & INP_TIMEWAIT) { | ||||
xt->t_state = TCPS_TIME_WAIT; | xt->t_state = TCPS_TIME_WAIT; | ||||
} else { | } else { | ||||
xt->t_state = tp->t_state; | xt->t_state = tp->t_state; | ||||
xt->t_logstate = tp->t_logstate; | xt->t_logstate = tp->t_logstate; | ||||
xt->t_flags = tp->t_flags; | xt->t_flags = tp->t_flags; | ||||
xt->t_sndzerowin = tp->t_sndzerowin; | xt->t_sndzerowin = tp->t_sndzerowin; | ||||
xt->t_sndrexmitpack = tp->t_sndrexmitpack; | xt->t_sndrexmitpack = tp->t_sndrexmitpack; | ||||
xt->t_rcvoopack = tp->t_rcvoopack; | xt->t_rcvoopack = tp->t_rcvoopack; | ||||
xt->t_rcv_wnd = tp->rcv_wnd; | |||||
xt->t_snd_wnd = tp->snd_wnd; | |||||
xt->t_snd_cwnd = tp->snd_cwnd; | |||||
xt->t_snd_ssthresh = tp->snd_ssthresh; | |||||
xt->t_maxseg = tp->t_maxseg; | |||||
xt->xt_ecn = (tp->t_flags2 & TF2_ECN_PERMIT) ? 1 : 0 + | |||||
(tp->t_flags2 & TF2_ACE_PERMIT) ? 2 : 0; | |||||
now = getsbinuptime(); | now = getsbinuptime(); | ||||
#define COPYTIMER(ttt) do { \ | #define COPYTIMER(ttt) do { \ | ||||
if (callout_active(&tp->t_timers->ttt)) \ | if (callout_active(&tp->t_timers->ttt)) \ | ||||
xt->ttt = (tp->t_timers->ttt.c_time - now) / \ | xt->ttt = (tp->t_timers->ttt.c_time - now) / \ | ||||
SBT_1MS; \ | SBT_1MS; \ | ||||
else \ | else \ | ||||
xt->ttt = 0; \ | xt->ttt = 0; \ | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |