This is an automated email from the ASF dual-hosted git repository.

anchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 548c7bccfa61b9e02be39a65c7b285ebdf16312b
Author: dongjiuzhu1 <[email protected]>
AuthorDate: Tue Jan 6 15:57:45 2026 +0800

    sim/usrsock: align socket option with sys/socket.h
    
    new socket option definition introduced by commit:
    I254b84e871012361c56f26f356ce27c0f740785f
    
    Signed-off-by: dongjiuzhu1 <[email protected]>
---
 arch/sim/src/sim/sim_hostusrsock.h | 36 ++++++++++++++++++++----------------
 1 file changed, 20 insertions(+), 16 deletions(-)

diff --git a/arch/sim/src/sim/sim_hostusrsock.h 
b/arch/sim/src/sim/sim_hostusrsock.h
index 34a2ce243b5..672cdd6e74a 100644
--- a/arch/sim/src/sim/sim_hostusrsock.h
+++ b/arch/sim/src/sim/sim_hostusrsock.h
@@ -130,28 +130,32 @@
 #define NUTTX_MSG_MORE              0x8000
 
 #define NUTTX_SOL_SOCKET            1
-#define NUTTX_SO_ACCEPTCONN         0
+#define NUTTX_SO_REUSEADDR          0
 #define NUTTX_SO_BROADCAST          1
 #define NUTTX_SO_DEBUG              2
 #define NUTTX_SO_DONTROUTE          3
-#define NUTTX_SO_ERROR              4
+#define NUTTX_SO_TIMESTAMP          4
 #define NUTTX_SO_KEEPALIVE          5
 #define NUTTX_SO_LINGER             6
 #define NUTTX_SO_OOBINLINE          7
-#define NUTTX_SO_RCVBUF             8
-#define NUTTX_SO_RCVLOWAT           9
-#define NUTTX_SO_RCVTIMEO           10
-#define NUTTX_SO_REUSEADDR          11
-#define NUTTX_SO_SNDBUF             12
-#define NUTTX_SO_SNDLOWAT           13
-#define NUTTX_SO_SNDTIMEO           14
-#define NUTTX_SO_TYPE               15
-#define NUTTX_SO_TIMESTAMP          16
-#define NUTTX_SO_BINDTODEVICE       17
-
-#define NUTTX_SO_SNDBUFFORCE        32
-#define NUTTX_SO_RCVBUFFORCE        33
-#define NUTTX_SO_RXQ_OVFL           40
+#define NUTTX_SO_TIMESTAMPS         8
+#define NUTTX_SO_TIMESTAMPING       9
+#define NUTTX_SO_RCVBUF             64
+#define NUTTX_SO_RCVLOWAT           65
+#define NUTTX_SO_RCVTIMEO           66
+#define NUTTX_SO_SNDBUF             67
+#define NUTTX_SO_SNDLOWAT           68
+#define NUTTX_SO_SNDTIMEO           69
+#define NUTTX_SO_TYPE               70
+#define NUTTX_SO_ERROR              71
+#define NUTTX_SO_BINDTODEVICE       72
+#define NUTTX_SO_PEERCRED           73
+#define NUTTX_SO_PRIORITY           74
+#define NUTTX_SO_ACCEPTCONN         75
+
+#define NUTTX_SO_SNDBUFFORCE        76
+#define NUTTX_SO_RCVBUFFORCE        77
+#define NUTTX_SO_RXQ_OVFL           78
 
 #define NUTTX_SOL_IP                NUTTX_IPPROTO_IP
 #define NUTTX_SOL_IPV6              NUTTX_IPPROTO_IPV6

Reply via email to