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

2016-02-25 Thread YOSHIFUJI Hideaki/吉藤英明
Hi, Deepa Dinamani wrote: >>> include/linux/ip.h | 2 ++ >>> include/linux/time64.h | 3 +++ >>> kernel/time/time.c | 26 ++ >>> 3 files changed, 31 insertions(+) >>> >> Since net/ipv4/* are the only users, it is enough to put >> it in under net/ipv4/. > >

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

2016-02-25 Thread Arnd Bergmann
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

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

2016-02-25 Thread Deepa Dinamani
>> include/linux/ip.h | 2 ++ >> include/linux/time64.h | 3 +++ >> kernel/time/time.c | 26 ++ >> 3 files changed, 31 insertions(+) >> >> diff --git a/include/linux/ip.h b/include/linux/ip.h >> index 492bc65..edf923e 100644 >> --- a/include/linux/ip.h >> +++

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

2016-02-25 Thread YOSHIFUJI Hideaki
Hi, 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

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

2016-02-24 Thread Deepa Dinamani
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