Skip to content

Commit

Permalink
[DCCP] options: convert dccp_insert_option_timestamp to ktime_t
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Oct 10, 2007
1 parent 19ac214 commit 2347489
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions net/dccp/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 2347489

Please sign in to comment.