[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7222364.EzaDaAUEpl@wuerfel>
Date: Mon, 29 Feb 2016 17:31:11 +0100
From: Arnd Bergmann <arnd@...db.de>
To: Deepa Dinamani <deepa.kernel@...il.com>
Cc: netdev@...r.kernel.org, y2038@...ts.linaro.org,
"David S. Miller" <davem@...emloft.net>,
Alexey Kuznetsov <kuznet@....inr.ac.ru>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
James Morris <jmorris@...ei.org>,
Patrick McHardy <kaber@...sh.net>
Subject: Re: [PATCH v2 1/3] net: ipv4: Convert IP network timestamps to be y2038 safe
On Saturday 27 February 2016 00:32:15 Deepa Dinamani wrote:
> ICMP timestamp messages and IP source route options require
> timestamps to be in milliseconds modulo 24 hours from
> midnight UT format.
>
> Add inet_current_timestamp() function to support this. The function
> returns the required timestamp in network byte order.
>
> Timestamp calculation is also changed to call ktime_get_real_ts64()
> which uses struct timespec64. struct timespec64 is y2038 safe.
> Previously it called getnstimeofday() which uses struct timespec.
> struct timespec is not y2038 safe.
>
> Signed-off-by: Deepa Dinamani <deepa.kernel@...il.com>
> Cc: "David S. Miller" <davem@...emloft.net>
> Cc: Alexey Kuznetsov <kuznet@....inr.ac.ru>
> Cc: Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>
> Cc: James Morris <jmorris@...ei.org>
> Cc: Patrick McHardy <kaber@...sh.net>
>
Acked-by: Arnd Bergmann <arnd@...db.de>
Powered by blists - more mailing lists