Thread (15 messages) 15 messages, 5 authors, 2016-02-27

Re: [Y2038] [PATCH 1/4] kernel: time: Add current_nw_timestamp() for network timestamps

From: Arnd Bergmann <arnd@arndb.de>
Date: 2016-02-25 14:57:03

On Wednesday 24 February 2016 23:07:08 Deepa Dinamani wrote:
ICMP timestamp messages and IP source route options require
timestamps to be in milliseconds modulo 24 hours from
midnight UTC format.

Add a time function to support this. The function returns the
required timestamp in network byte order.

The function also uses y2038 safe time functions and data
structures.

Signed-off-by: Deepa Dinamani <redacted>
For the implementation:

Reviewed-by: Arnd Bergmann <arnd@arndb.de>

For where to put the code, I have no better idea, but I agree
with Hideaki Yoshifuji that it's a bit odd to place it in
kernel/*.c when it's only used by net/ipv4.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help