diff options
Diffstat (limited to 'net/ipv4/tcp_minisocks.c')
-rw-r--r-- | net/ipv4/tcp_minisocks.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index 80b1f80759ab..d2fe4e06b472 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c | |||
@@ -486,7 +486,7 @@ struct sock *tcp_create_openreq_child(struct sock *sk, struct request_sock *req, | |||
486 | * algorithms that we must have the following bandaid to talk | 486 | * algorithms that we must have the following bandaid to talk |
487 | * efficiently to them. -DaveM | 487 | * efficiently to them. -DaveM |
488 | */ | 488 | */ |
489 | newtp->snd_cwnd = 2; | 489 | newtp->snd_cwnd = TCP_INIT_CWND; |
490 | newtp->snd_cwnd_cnt = 0; | 490 | newtp->snd_cwnd_cnt = 0; |
491 | newtp->bytes_acked = 0; | 491 | newtp->bytes_acked = 0; |
492 | 492 | ||
@@ -720,6 +720,10 @@ struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb, | |||
720 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPDEFERACCEPTDROP); | 720 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPDEFERACCEPTDROP); |
721 | return NULL; | 721 | return NULL; |
722 | } | 722 | } |
723 | if (tmp_opt.saw_tstamp && tmp_opt.rcv_tsecr) | ||
724 | tcp_rsk(req)->snt_synack = tmp_opt.rcv_tsecr; | ||
725 | else if (req->retrans) /* don't take RTT sample if retrans && ~TS */ | ||
726 | tcp_rsk(req)->snt_synack = 0; | ||
723 | 727 | ||
724 | /* OK, ACK is valid, create big socket and | 728 | /* OK, ACK is valid, create big socket and |
725 | * feed this segment to it. It will repeat all | 729 | * feed this segment to it. It will repeat all |