aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/options.c')
-rw-r--r--net/dccp/options.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/dccp/options.c b/net/dccp/options.c
index 95b75d8354ff..439e25daa963 100644
--- a/net/dccp/options.c
+++ b/net/dccp/options.c
@@ -388,11 +388,7 @@ EXPORT_SYMBOL_GPL(dccp_timestamp);
388 388
389int dccp_insert_option_timestamp(struct sock *sk, struct sk_buff *skb) 389int dccp_insert_option_timestamp(struct sock *sk, struct sk_buff *skb)
390{ 390{
391 struct timeval tv; 391 __be32 now = htonl(((suseconds_t)ktime_to_us(ktime_get_real())) / 10);
392 __be32 now;
393
394 dccp_timestamp(sk, &tv);
395 now = htonl(timeval_usecs(&tv) / 10);
396 /* yes this will overflow but that is the point as we want a 392 /* yes this will overflow but that is the point as we want a
397 * 10 usec 32 bit timer which mean it wraps every 11.9 hours */ 393 * 10 usec 32 bit timer which mean it wraps every 11.9 hours */
398 394