summaryrefslogtreecommitdiff
path: root/net/dccp
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@ghostprotocols.net>2007-08-20 04:18:55 +0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-11 03:48:16 +0400
commit234748954a9880cce8a065698dcbf692f9c23918 (patch)
tree04c98174068201d9f631ed3967065a10f1664ee1 /net/dccp
parent19ac21465e15e476220909c01b23df847b6ffa30 (diff)
downloadlinux-234748954a9880cce8a065698dcbf692f9c23918.tar.xz
[DCCP] options: convert dccp_insert_option_timestamp to ktime_t
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-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);
int dccp_insert_option_timestamp(struct sock *sk, struct sk_buff *skb)
{
- struct timeval tv;
- __be32 now;
-
- dccp_timestamp(sk, &tv);
- now = htonl(timeval_usecs(&tv) / 10);
+ __be32 now = htonl(((suseconds_t)ktime_to_us(ktime_get_real())) / 10);
/* yes this will overflow but that is the point as we want a
* 10 usec 32 bit timer which mean it wraps every 11.9 hours */