aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ccids
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/ccids')
-rw-r--r--net/dccp/ccids/ccid3.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c
index 2dd3e94ba8f4..694149061b8b 100644
--- a/net/dccp/ccids/ccid3.c
+++ b/net/dccp/ccids/ccid3.c
@@ -2,12 +2,12 @@
2 * net/dccp/ccids/ccid3.c 2 * net/dccp/ccids/ccid3.c
3 * 3 *
4 * Copyright (c) 2005 The University of Waikato, Hamilton, New Zealand. 4 * Copyright (c) 2005 The University of Waikato, Hamilton, New Zealand.
5 * Copyright (c) 2005 Ian McDonald <iam4@cs.waikato.ac.nz>
5 * 6 *
6 * An implementation of the DCCP protocol 7 * An implementation of the DCCP protocol
7 * 8 *
8 * This code has been developed by the University of Waikato WAND 9 * This code has been developed by the University of Waikato WAND
9 * research group. For further information please see http://www.wand.net.nz/ 10 * research group. For further information please see http://www.wand.net.nz/
10 * or e-mail Ian McDonald - iam4@cs.waikato.ac.nz
11 * 11 *
12 * This code also uses code from Lulea University, rereleased as GPL by its 12 * This code also uses code from Lulea University, rereleased as GPL by its
13 * authors: 13 * authors:
@@ -174,14 +174,6 @@ static inline void timeval_fix(struct timeval *tv)
174 } 174 }
175} 175}
176 176
177/* returns the difference in usecs between timeval passed in and current time */
178static inline u32 now_delta(struct timeval tv) {
179 struct timeval now;
180
181 do_gettimeofday(&now);
182 return ((now.tv_sec-tv.tv_sec)*1000000+now.tv_usec-tv.tv_usec);
183}
184
185#define CALCX_ARRSIZE 500 177#define CALCX_ARRSIZE 500
186 178
187#define CALCX_SPLIT 50000 179#define CALCX_SPLIT 50000
@@ -1110,7 +1102,7 @@ static void ccid3_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb)
1110 struct ccid3_options_received *opt_recv; 1102 struct ccid3_options_received *opt_recv;
1111 struct dccp_tx_hist_entry *packet; 1103 struct dccp_tx_hist_entry *packet;
1112 unsigned long next_tmout; 1104 unsigned long next_tmout;
1113 u16 t_elapsed; 1105 u32 t_elapsed;
1114 u32 pinv; 1106 u32 pinv;
1115 u32 x_recv; 1107 u32 x_recv;
1116 u32 r_sample; 1108 u32 r_sample;