linux-user: Define SO_TIMESTAMP*_NEW and SO_RCVTIMEIO_NEW
Define the entries which always use the 64-bit timestamps. Signed-off-by: Helge Deller <deller@gmx.de>
Helge Deller committed
Apr 24, 2026 at 10:23 UTC
8b60ed835478a787dd60e0f7308a65f6d35b0268
5 files changed
+36
linux-user/alpha/sockbits.h
+7
@@ -75,6 +75,13 @@
75
/* Instruct lower device to use last 4-bytes of skb data as FCS */
76
#define TARGET_SO_NOFCS 43
77
78
+#define TARGET_SO_TIMESTAMP_NEW 63
79
+#define TARGET_SO_TIMESTAMPNS_NEW 64
80
+#define TARGET_SO_TIMESTAMPING_NEW 65
81
+
82
+#define TARGET_SO_RCVTIMEO_NEW 66
83
+#define TARGET_SO_SNDTIMEO_NEW 67
84
+
85
/* TARGET_O_NONBLOCK clashes with the bits used for socket types. Therefore we
86
* have to define SOCK_NONBLOCK to a different value here.
87
*/
linux-user/generic/sockbits.h
+8
@@ -58,4 +58,12 @@
58
59
#define TARGET_SO_PROTOCOL 38
60
#define TARGET_SO_DOMAIN 39
61
+
62
+#define TARGET_SO_TIMESTAMP_NEW 63
63
+#define TARGET_SO_TIMESTAMPNS_NEW 64
64
+#define TARGET_SO_TIMESTAMPING_NEW 65
65
+
66
+#define TARGET_SO_RCVTIMEO_NEW 66
67
+#define TARGET_SO_SNDTIMEO_NEW 67
68
+
69
#endif
linux-user/hppa/sockbits.h
+7
@@ -67,6 +67,13 @@
67
68
#define TARGET_SO_CNX_ADVICE 0x402E
69
70
+#define TARGET_SO_TIMESTAMP_NEW 0x4038
71
+#define TARGET_SO_TIMESTAMPNS_NEW 0x4039
72
+#define TARGET_SO_TIMESTAMPING_NEW 0x403A
73
+
74
+#define TARGET_SO_RCVTIMEO_NEW 0x4040
75
+#define TARGET_SO_SNDTIMEO_NEW 0x4041
76
+
77
/* TARGET_O_NONBLOCK clashes with the bits used for socket types. Therefore we
78
* have to define SOCK_NONBLOCK to a different value here.
79
*/
linux-user/mips/sockbits.h
+7
@@ -71,6 +71,13 @@
71
#define TARGET_SO_RCVBUFFORCE 33
72
#define TARGET_SO_PASSSEC 34
73
74
+#define TARGET_SO_TIMESTAMP_NEW 63
75
+#define TARGET_SO_TIMESTAMPNS_NEW 64
76
+#define TARGET_SO_TIMESTAMPING_NEW 65
77
+
78
+#define TARGET_SO_RCVTIMEO_NEW 66
79
+#define TARGET_SO_SNDTIMEO_NEW 67
80
+
81
/** sock_type - Socket types
82
*
83
* Please notice that for binary compat reasons MIPS has to
linux-user/sparc/sockbits.h
+7
@@ -61,6 +61,13 @@
61
#define TARGET_SO_TIMESTAMPING 0x0023
62
#define TARGET_SCM_TIMESTAMPING TARGET_SO_TIMESTAMPING
63
64
+#define TARGET_SO_TIMESTAMP_NEW 0x0046
65
+#define TARGET_SO_TIMESTAMPNS_NEW 0x0042
66
+#define TARGET_SO_TIMESTAMPING_NEW 0x0043
67
+
68
+#define TARGET_SO_RCVTIMEO_NEW 0x0044
69
+#define TARGET_SO_SNDTIMEO_NEW 0x0045
70
+
71
#define TARGET_SO_RXQ_OVFL 0x0024
72
73
#define TARGET_SO_WIFI_STATUS 0x0025