From: Helge Deller <deller@kernel.org>
To: laurent@vivier.eu, qemu-devel@nongnu.org
Cc: deller@gmx.de
Subject: [PATCH 2/4] linux-user: Define SO_TIMESTAMP*_NEW and SO_RCVTIMEIO_NEW
Date: Fri, 24 Apr 2026 11:08:48 +0200 [thread overview]
Message-ID: <20260424091024.23495-3-deller@kernel.org> (raw)
In-Reply-To: <20260424091024.23495-1-deller@kernel.org>
From: Helge Deller <deller@gmx.de>
Define the entries which always use the 64-bit timestamps.
Signed-off-by: Helge Deller <deller@gmx.de>
---
linux-user/alpha/sockbits.h | 7 +++++++
linux-user/generic/sockbits.h | 8 ++++++++
linux-user/hppa/sockbits.h | 7 +++++++
linux-user/mips/sockbits.h | 7 +++++++
linux-user/sparc/sockbits.h | 7 +++++++
5 files changed, 36 insertions(+)
diff --git a/linux-user/alpha/sockbits.h b/linux-user/alpha/sockbits.h
index d54dc98c09..0201ab9374 100644
--- a/linux-user/alpha/sockbits.h
+++ b/linux-user/alpha/sockbits.h
@@ -75,6 +75,13 @@
/* Instruct lower device to use last 4-bytes of skb data as FCS */
#define TARGET_SO_NOFCS 43
+#define TARGET_SO_TIMESTAMP_NEW 63
+#define TARGET_SO_TIMESTAMPNS_NEW 64
+#define TARGET_SO_TIMESTAMPING_NEW 65
+
+#define TARGET_SO_RCVTIMEO_NEW 66
+#define TARGET_SO_SNDTIMEO_NEW 67
+
/* TARGET_O_NONBLOCK clashes with the bits used for socket types. Therefore we
* have to define SOCK_NONBLOCK to a different value here.
*/
diff --git a/linux-user/generic/sockbits.h b/linux-user/generic/sockbits.h
index b3b4a8e44c..33e6c3a572 100644
--- a/linux-user/generic/sockbits.h
+++ b/linux-user/generic/sockbits.h
@@ -58,4 +58,12 @@
#define TARGET_SO_PROTOCOL 38
#define TARGET_SO_DOMAIN 39
+
+#define TARGET_SO_TIMESTAMP_NEW 63
+#define TARGET_SO_TIMESTAMPNS_NEW 64
+#define TARGET_SO_TIMESTAMPING_NEW 65
+
+#define TARGET_SO_RCVTIMEO_NEW 66
+#define TARGET_SO_SNDTIMEO_NEW 67
+
#endif
diff --git a/linux-user/hppa/sockbits.h b/linux-user/hppa/sockbits.h
index 23f69a3293..2304dbbf79 100644
--- a/linux-user/hppa/sockbits.h
+++ b/linux-user/hppa/sockbits.h
@@ -67,6 +67,13 @@
#define TARGET_SO_CNX_ADVICE 0x402E
+#define TARGET_SO_TIMESTAMP_NEW 0x4038
+#define TARGET_SO_TIMESTAMPNS_NEW 0x4039
+#define TARGET_SO_TIMESTAMPING_NEW 0x403A
+
+#define TARGET_SO_RCVTIMEO_NEW 0x4040
+#define TARGET_SO_SNDTIMEO_NEW 0x4041
+
/* TARGET_O_NONBLOCK clashes with the bits used for socket types. Therefore we
* have to define SOCK_NONBLOCK to a different value here.
*/
diff --git a/linux-user/mips/sockbits.h b/linux-user/mips/sockbits.h
index 562cad88e2..1f479d54aa 100644
--- a/linux-user/mips/sockbits.h
+++ b/linux-user/mips/sockbits.h
@@ -71,6 +71,13 @@
#define TARGET_SO_RCVBUFFORCE 33
#define TARGET_SO_PASSSEC 34
+#define TARGET_SO_TIMESTAMP_NEW 63
+#define TARGET_SO_TIMESTAMPNS_NEW 64
+#define TARGET_SO_TIMESTAMPING_NEW 65
+
+#define TARGET_SO_RCVTIMEO_NEW 66
+#define TARGET_SO_SNDTIMEO_NEW 67
+
/** sock_type - Socket types
*
* Please notice that for binary compat reasons MIPS has to
diff --git a/linux-user/sparc/sockbits.h b/linux-user/sparc/sockbits.h
index 0a822e3e1f..42ecfdc8f9 100644
--- a/linux-user/sparc/sockbits.h
+++ b/linux-user/sparc/sockbits.h
@@ -61,6 +61,13 @@
#define TARGET_SO_TIMESTAMPING 0x0023
#define TARGET_SCM_TIMESTAMPING TARGET_SO_TIMESTAMPING
+#define TARGET_SO_TIMESTAMP_NEW 0x0046
+#define TARGET_SO_TIMESTAMPNS_NEW 0x0042
+#define TARGET_SO_TIMESTAMPING_NEW 0x0043
+
+#define TARGET_SO_RCVTIMEO_NEW 0x0044
+#define TARGET_SO_SNDTIMEO_NEW 0x0045
+
#define TARGET_SO_RXQ_OVFL 0x0024
#define TARGET_SO_WIFI_STATUS 0x0025
--
2.53.0
next prev parent reply other threads:[~2026-04-24 9:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-24 9:08 linux-user: Add sockopts for SO_RCVTIMEO_NEW and SO_SNDTIMEO_NEW Helge Deller
2026-04-24 9:08 ` [PATCH 1/4] linux-user: Use int64_t in target__kernel_sock_timeval Helge Deller
2026-04-24 22:14 ` Richard Henderson
2026-04-24 22:37 ` Helge Deller
2026-04-24 9:08 ` Helge Deller [this message]
2026-04-24 9:08 ` [PATCH 3/4] linux-user: Add setsockopt() for SO_RCVTIMEO_NEW and SO_SNDTIMEO_NEW Helge Deller
2026-04-24 9:08 ` [PATCH 4/4] linux-user: Add getsockopt() " Helge Deller
2026-04-30 16:34 ` linux-user: Add sockopts " Michael Tokarev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260424091024.23495-3-deller@kernel.org \
--to=deller@kernel.org \
--cc=deller@gmx.de \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.