|
@@ -288,6 +288,7 @@ void tcp_time_wait(struct sock *sk, int state, int timeo)
|
|
|
tcptw->tw_rcv_wnd = tcp_receive_window(tp);
|
|
|
tcptw->tw_ts_recent = tp->rx_opt.ts_recent;
|
|
|
tcptw->tw_ts_recent_stamp = tp->rx_opt.ts_recent_stamp;
|
|
|
+ tcptw->tw_ts_offset = tp->tsoffset;
|
|
|
|
|
|
#if IS_ENABLED(CONFIG_IPV6)
|
|
|
if (tw->tw_family == PF_INET6) {
|
|
@@ -499,6 +500,7 @@ struct sock *tcp_create_openreq_child(struct sock *sk, struct request_sock *req,
|
|
|
newtp->rx_opt.ts_recent_stamp = 0;
|
|
|
newtp->tcp_header_len = sizeof(struct tcphdr);
|
|
|
}
|
|
|
+ newtp->tsoffset = 0;
|
|
|
#ifdef CONFIG_TCP_MD5SIG
|
|
|
newtp->md5sig_info = NULL; /*XXX*/
|
|
|
if (newtp->af_specific->md5_lookup(sk, newsk))
|