diff options
Diffstat (limited to 'net/dccp/input.c')
-rw-r--r-- | net/dccp/input.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/dccp/input.c b/net/dccp/input.c index bd578c87b2e7..da6ec185ed5b 100644 --- a/net/dccp/input.c +++ b/net/dccp/input.c | |||
@@ -300,6 +300,14 @@ static int dccp_rcv_request_sent_state_process(struct sock *sk, | |||
300 | if (dccp_parse_options(sk, skb)) | 300 | if (dccp_parse_options(sk, skb)) |
301 | goto out_invalid_packet; | 301 | goto out_invalid_packet; |
302 | 302 | ||
303 | /* Obtain RTT sample from SYN exchange (used by CCID 3) */ | ||
304 | if (dp->dccps_options_received.dccpor_timestamp_echo) { | ||
305 | struct timeval now; | ||
306 | |||
307 | dccp_timestamp(sk, &now); | ||
308 | dp->dccps_syn_rtt = dccp_sample_rtt(sk, &now, NULL); | ||
309 | } | ||
310 | |||
303 | if (dccp_msk(sk)->dccpms_send_ack_vector && | 311 | if (dccp_msk(sk)->dccpms_send_ack_vector && |
304 | dccp_ackvec_add(dp->dccps_hc_rx_ackvec, sk, | 312 | dccp_ackvec_add(dp->dccps_hc_rx_ackvec, sk, |
305 | DCCP_SKB_CB(skb)->dccpd_seq, | 313 | DCCP_SKB_CB(skb)->dccpd_seq, |