diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 4 | ||||
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index e64abed249cc..1e66f7fb4fe6 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1733,9 +1733,7 @@ struct sock *tcp_v4_syn_recv_sock(struct sock *sk, struct sk_buff *skb, | |||
1733 | newtp->advmss = tcp_sk(sk)->rx_opt.user_mss; | 1733 | newtp->advmss = tcp_sk(sk)->rx_opt.user_mss; |
1734 | 1734 | ||
1735 | tcp_initialize_rcv_mss(newsk); | 1735 | tcp_initialize_rcv_mss(newsk); |
1736 | if (tcp_rsk(req)->snt_synack) | 1736 | tcp_synack_rtt_meas(newsk, req); |
1737 | tcp_valid_rtt_meas(newsk, | ||
1738 | tcp_time_stamp - tcp_rsk(req)->snt_synack); | ||
1739 | newtp->total_retrans = req->retrans; | 1737 | newtp->total_retrans = req->retrans; |
1740 | 1738 | ||
1741 | #ifdef CONFIG_TCP_MD5SIG | 1739 | #ifdef CONFIG_TCP_MD5SIG |
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index f3bfb8bbfdec..cfeeeb7fcf54 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -1348,9 +1348,7 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb, | |||
1348 | newtp->advmss = tcp_sk(sk)->rx_opt.user_mss; | 1348 | newtp->advmss = tcp_sk(sk)->rx_opt.user_mss; |
1349 | 1349 | ||
1350 | tcp_initialize_rcv_mss(newsk); | 1350 | tcp_initialize_rcv_mss(newsk); |
1351 | if (tcp_rsk(req)->snt_synack) | 1351 | tcp_synack_rtt_meas(newsk, req); |
1352 | tcp_valid_rtt_meas(newsk, | ||
1353 | tcp_time_stamp - tcp_rsk(req)->snt_synack); | ||
1354 | newtp->total_retrans = req->retrans; | 1352 | newtp->total_retrans = req->retrans; |
1355 | 1353 | ||
1356 | newinet->inet_daddr = newinet->inet_saddr = LOOPBACK4_IPV6; | 1354 | newinet->inet_daddr = newinet->inet_saddr = LOOPBACK4_IPV6; |