diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2007-03-20 19:27:17 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 07:27:02 +0200 |
commit | 89560b53b92a07c529e13a462aa7fd87a844f1f5 (patch) | |
tree | 89409bee68da1ee44b7945315efecd779d7fe60a /net/dccp/options.c | |
parent | [CCID3]: Use function for RTT sampling (diff) | |
download | linux-89560b53b92a07c529e13a462aa7fd87a844f1f5.tar.xz linux-89560b53b92a07c529e13a462aa7fd87a844f1f5.zip |
[DCCP]: Sample RTT from SYN exchange
Function:
Diffstat (limited to 'net/dccp/options.c')
-rw-r--r-- | net/dccp/options.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/dccp/options.c b/net/dccp/options.c index 9074ca7977b2..14b621227323 100644 --- a/net/dccp/options.c +++ b/net/dccp/options.c @@ -563,6 +563,14 @@ int dccp_insert_options(struct sock *sk, struct sk_buff *skb) dccp_insert_options_feat(sk, skb)) return -1; + /* + * Obtain RTT sample from Request/Response exchange. + * This is currently used in CCID 3 initialisation. + */ + if (DCCP_SKB_CB(skb)->dccpd_type == DCCP_PKT_REQUEST && + dccp_insert_option_timestamp(sk, skb)) + return -1; + /* XXX: insert other options when appropriate */ if (DCCP_SKB_CB(skb)->dccpd_opt_len != 0) { |