mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
[DCCP]: Sample RTT from SYN exchange
Function:
This commit is contained in:
parent
7dfee1a9c0
commit
89560b53b9
3 changed files with 18 additions and 0 deletions
|
@ -300,6 +300,14 @@ static int dccp_rcv_request_sent_state_process(struct sock *sk,
|
|||
if (dccp_parse_options(sk, skb))
|
||||
goto out_invalid_packet;
|
||||
|
||||
/* Obtain RTT sample from SYN exchange (used by CCID 3) */
|
||||
if (dp->dccps_options_received.dccpor_timestamp_echo) {
|
||||
struct timeval now;
|
||||
|
||||
dccp_timestamp(sk, &now);
|
||||
dp->dccps_syn_rtt = dccp_sample_rtt(sk, &now, NULL);
|
||||
}
|
||||
|
||||
if (dccp_msk(sk)->dccpms_send_ack_vector &&
|
||||
dccp_ackvec_add(dp->dccps_hc_rx_ackvec, sk,
|
||||
DCCP_SKB_CB(skb)->dccpd_seq,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue