aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
authorDeepa Dinamani <deepa.kernel@gmail.com>2019-02-02 10:34:48 -0500
committerDavid S. Miller <davem@davemloft.net>2019-02-03 14:17:30 -0500
commit13c6ee2a921683bae4bb4ba57b1f5b82f49e6b8a (patch)
tree6603af04975126384041dacb4d094d58e6de7b6b /net/ipv4/tcp.c
parentbcb3fc3247e5a7ceb467ca0cfdaa4c1b830dd8f9 (diff)
socket: Use old_timeval types for socket timestamps
As part of y2038 solution, all internal uses of struct timeval are replaced by struct __kernel_old_timeval and struct compat_timeval by struct old_timeval32. Make socket timestamps use these new types. This is mainly to be able to verify that the kernel build is y2038 safe when such non y2038 safe types are not supported anymore. Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com> Acked-by: Willem de Bruijn <willemb@google.com> Cc: isdn@linux-pingi.de Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index e29aec59cad1..3ce41b04c0f0 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -1861,7 +1861,7 @@ static void tcp_update_recv_tstamps(struct sk_buff *skb,
1861static void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk, 1861static void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk,
1862 struct scm_timestamping *tss) 1862 struct scm_timestamping *tss)
1863{ 1863{
1864 struct timeval tv; 1864 struct __kernel_old_timeval tv;
1865 bool has_timestamping = false; 1865 bool has_timestamping = false;
1866 1866
1867 if (tss->ts[0].tv_sec || tss->ts[0].tv_nsec) { 1867 if (tss->ts[0].tv_sec || tss->ts[0].tv_nsec) {