提交 23474895 编写于 作者: A Arnaldo Carvalho de Melo 提交者: David S. Miller

[DCCP] options: convert dccp_insert_option_timestamp to ktime_t

Signed-off-by: NArnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 19ac2146
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册