Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_subr.c
Show First 20 Lines • Show All 731 Lines • ▼ Show 20 Lines | tcp_default_fb_init(struct tcpcb *tp) | ||||
} | } | ||||
/* All non-embryonic sessions get a keepalive timer. */ | /* All non-embryonic sessions get a keepalive timer. */ | ||||
if (!tcp_timer_active(tp, TT_KEEP)) | if (!tcp_timer_active(tp, TT_KEEP)) | ||||
tcp_timer_activate(tp, TT_KEEP, | tcp_timer_activate(tp, TT_KEEP, | ||||
TCPS_HAVEESTABLISHED(tp->t_state) ? TP_KEEPIDLE(tp) : | TCPS_HAVEESTABLISHED(tp->t_state) ? TP_KEEPIDLE(tp) : | ||||
TP_KEEPINIT(tp)); | TP_KEEPINIT(tp)); | ||||
/* | |||||
* Make sure critical variables are initialized | |||||
* if transitioning while in Recovery. | |||||
*/ | |||||
if IN_FASTRECOVERY(tp->t_flags) { | |||||
if (tp->sackhint.recover_fs == 0) | |||||
tp->sackhint.recover_fs = max(1, | |||||
tp->snd_nxt - tp->snd_una); | |||||
} | |||||
return (0); | return (0); | ||||
} | } | ||||
/* | /* | ||||
* tfb_tcp_fb_fini() function for the default stack. | * tfb_tcp_fb_fini() function for the default stack. | ||||
* | * | ||||
* This changes state as necessary (or prudent) to prepare for another stack | * This changes state as necessary (or prudent) to prepare for another stack | ||||
* to assume responsibility for the connection. | * to assume responsibility for the connection. | ||||
▲ Show 20 Lines • Show All 2,760 Lines • Show Last 20 Lines |