diff options
Diffstat (limited to 'net/ipv4/tcp_minisocks.c')
-rw-r--r-- | net/ipv4/tcp_minisocks.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index a7302d974f32..f35f2dfb6401 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c | |||
@@ -553,7 +553,7 @@ struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb, | |||
553 | * it can be estimated (approximately) | 553 | * it can be estimated (approximately) |
554 | * from another data. | 554 | * from another data. |
555 | */ | 555 | */ |
556 | tmp_opt.ts_recent_stamp = get_seconds() - ((TCP_TIMEOUT_INIT/HZ)<<req->retrans); | 556 | tmp_opt.ts_recent_stamp = get_seconds() - ((TCP_TIMEOUT_INIT/HZ)<<req->num_timeout); |
557 | paws_reject = tcp_paws_reject(&tmp_opt, th->rst); | 557 | paws_reject = tcp_paws_reject(&tmp_opt, th->rst); |
558 | } | 558 | } |
559 | } | 559 | } |
@@ -582,7 +582,7 @@ struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb, | |||
582 | * Note that even if there is new data in the SYN packet | 582 | * Note that even if there is new data in the SYN packet |
583 | * they will be thrown away too. | 583 | * they will be thrown away too. |
584 | */ | 584 | */ |
585 | req->rsk_ops->rtx_syn_ack(sk, req, NULL); | 585 | inet_rtx_syn_ack(sk, req); |
586 | return NULL; | 586 | return NULL; |
587 | } | 587 | } |
588 | 588 | ||
@@ -696,7 +696,7 @@ struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb, | |||
696 | /* Got ACK for our SYNACK, so update baseline for SYNACK RTT sample. */ | 696 | /* Got ACK for our SYNACK, so update baseline for SYNACK RTT sample. */ |
697 | if (tmp_opt.saw_tstamp && tmp_opt.rcv_tsecr) | 697 | if (tmp_opt.saw_tstamp && tmp_opt.rcv_tsecr) |
698 | tcp_rsk(req)->snt_synack = tmp_opt.rcv_tsecr; | 698 | tcp_rsk(req)->snt_synack = tmp_opt.rcv_tsecr; |
699 | else if (req->retrans) /* don't take RTT sample if retrans && ~TS */ | 699 | else if (req->num_retrans) /* don't take RTT sample if retrans && ~TS */ |
700 | tcp_rsk(req)->snt_synack = 0; | 700 | tcp_rsk(req)->snt_synack = 0; |
701 | 701 | ||
702 | /* For Fast Open no more processing is needed (sk is the | 702 | /* For Fast Open no more processing is needed (sk is the |
@@ -706,7 +706,7 @@ struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb, | |||
706 | return sk; | 706 | return sk; |
707 | 707 | ||
708 | /* While TCP_DEFER_ACCEPT is active, drop bare ACK. */ | 708 | /* While TCP_DEFER_ACCEPT is active, drop bare ACK. */ |
709 | if (req->retrans < inet_csk(sk)->icsk_accept_queue.rskq_defer_accept && | 709 | if (req->num_timeout < inet_csk(sk)->icsk_accept_queue.rskq_defer_accept && |
710 | TCP_SKB_CB(skb)->end_seq == tcp_rsk(req)->rcv_isn + 1) { | 710 | TCP_SKB_CB(skb)->end_seq == tcp_rsk(req)->rcv_isn + 1) { |
711 | inet_rsk(req)->acked = 1; | 711 | inet_rsk(req)->acked = 1; |
712 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPDEFERACCEPTDROP); | 712 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPDEFERACCEPTDROP); |