aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDeepa Dinamani <deepa.kernel@gmail.com>2019-02-02 10:34:46 -0500
committerDavid S. Miller <davem@davemloft.net>2019-02-03 14:17:30 -0500
commit7f1bc6e95d7840d4305595b3e4025cddda88cee5 (patch)
tree9b867e3563ccf7fa168dc4696ca8cbb1ac61fc59 /include
parent2edfd8e06145da646cb4ec3e6ed2a68dc8b746bb (diff)
sockopt: Rename SO_TIMESTAMP* to SO_TIMESTAMP*_OLD
SO_TIMESTAMP, SO_TIMESTAMPNS and SO_TIMESTAMPING options, the way they are currently defined, are not y2038 safe. Subsequent patches in the series add new y2038 safe versions of these options which provide 64 bit timestamps on all architectures uniformly. Hence, rename existing options with OLD tag suffixes. Also note that kernel will not use the untagged SO_TIMESTAMP* and SCM_TIMESTAMP* options internally anymore. Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com> Acked-by: Willem de Bruijn <willemb@google.com> Cc: deller@gmx.de Cc: dhowells@redhat.com Cc: jejb@parisc-linux.org Cc: ralf@linux-mips.org Cc: rth@twiddle.net Cc: linux-afs@lists.infradead.org Cc: linux-alpha@vger.kernel.org Cc: linux-arch@vger.kernel.org Cc: linux-mips@linux-mips.org Cc: linux-parisc@vger.kernel.org Cc: linux-rdma@vger.kernel.org Cc: sparclinux@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/asm-generic/socket.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/include/uapi/asm-generic/socket.h b/include/uapi/asm-generic/socket.h
index 3066ab3853a8..4ef3aed31fb7 100644
--- a/include/uapi/asm-generic/socket.h
+++ b/include/uapi/asm-generic/socket.h
@@ -46,21 +46,14 @@
46#define SO_GET_FILTER SO_ATTACH_FILTER 46#define SO_GET_FILTER SO_ATTACH_FILTER
47 47
48#define SO_PEERNAME 28 48#define SO_PEERNAME 28
49#define SO_TIMESTAMP 29
50#define SCM_TIMESTAMP SO_TIMESTAMP
51 49
52#define SO_ACCEPTCONN 30 50#define SO_ACCEPTCONN 30
53 51
54#define SO_PEERSEC 31 52#define SO_PEERSEC 31
55#define SO_PASSSEC 34 53#define SO_PASSSEC 34
56#define SO_TIMESTAMPNS 35
57#define SCM_TIMESTAMPNS SO_TIMESTAMPNS
58 54
59#define SO_MARK 36 55#define SO_MARK 36
60 56
61#define SO_TIMESTAMPING 37
62#define SCM_TIMESTAMPING SO_TIMESTAMPING
63
64#define SO_PROTOCOL 38 57#define SO_PROTOCOL 38
65#define SO_DOMAIN 39 58#define SO_DOMAIN 39
66 59
@@ -112,4 +105,20 @@
112 105
113#define SO_BINDTOIFINDEX 62 106#define SO_BINDTOIFINDEX 62
114 107
108#define SO_TIMESTAMP_OLD 29
109#define SO_TIMESTAMPNS_OLD 35
110#define SO_TIMESTAMPING_OLD 37
111
112#if !defined(__KERNEL__)
113
114#define SO_TIMESTAMP SO_TIMESTAMP_OLD
115#define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
116#define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
117
118#define SCM_TIMESTAMP SO_TIMESTAMP
119#define SCM_TIMESTAMPNS SO_TIMESTAMPNS
120#define SCM_TIMESTAMPING SO_TIMESTAMPING
121
122#endif
123
115#endif /* __ASM_GENERIC_SOCKET_H */ 124#endif /* __ASM_GENERIC_SOCKET_H */