aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_minisocks.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_minisocks.c')
-rw-r--r--net/ipv4/tcp_minisocks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c
index f0409287b5f4..4dfc99f54f67 100644
--- a/net/ipv4/tcp_minisocks.c
+++ b/net/ipv4/tcp_minisocks.c
@@ -288,6 +288,7 @@ void tcp_time_wait(struct sock *sk, int state, int timeo)
288 tcptw->tw_rcv_wnd = tcp_receive_window(tp); 288 tcptw->tw_rcv_wnd = tcp_receive_window(tp);
289 tcptw->tw_ts_recent = tp->rx_opt.ts_recent; 289 tcptw->tw_ts_recent = tp->rx_opt.ts_recent;
290 tcptw->tw_ts_recent_stamp = tp->rx_opt.ts_recent_stamp; 290 tcptw->tw_ts_recent_stamp = tp->rx_opt.ts_recent_stamp;
291 tcptw->tw_ts_offset = tp->tsoffset;
291 292
292#if IS_ENABLED(CONFIG_IPV6) 293#if IS_ENABLED(CONFIG_IPV6)
293 if (tw->tw_family == PF_INET6) { 294 if (tw->tw_family == PF_INET6) {
@@ -499,6 +500,7 @@ struct sock *tcp_create_openreq_child(struct sock *sk, struct request_sock *req,
499 newtp->rx_opt.ts_recent_stamp = 0; 500 newtp->rx_opt.ts_recent_stamp = 0;
500 newtp->tcp_header_len = sizeof(struct tcphdr); 501 newtp->tcp_header_len = sizeof(struct tcphdr);
501 } 502 }
503 newtp->tsoffset = 0;
502#ifdef CONFIG_TCP_MD5SIG 504#ifdef CONFIG_TCP_MD5SIG
503 newtp->md5sig_info = NULL; /*XXX*/ 505 newtp->md5sig_info = NULL; /*XXX*/
504 if (newtp->af_specific->md5_lookup(sk, newsk)) 506 if (newtp->af_specific->md5_lookup(sk, newsk))