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 <deepa.ker...@gmail.com> >
For the implementation: Reviewed-by: Arnd Bergmann <a...@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