This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 935f830e16690d6ed6adf567c8eb862de11a02dd Author: wenquan1 <[email protected]> AuthorDate: Wed Mar 11 16:47:44 2026 +0800 include/sys/socket.h: add SCM_TIMESTAMPNS and SCM_TIMESTAMPING macros Add missing SCM_TIMESTAMPNS and SCM_TIMESTAMPING control message type definitions mapped to their corresponding SO_TIMESTAMPNS and SO_TIMESTAMPING socket options. Also align whitespace of existing SCM_* definitions for consistency. Signed-off-by: wenquan1 <[email protected]> --- include/sys/socket.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/sys/socket.h b/include/sys/socket.h index fddc049959f..50424bff924 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -309,10 +309,12 @@ /* "Socket"-level control message types: */ -#define SCM_RIGHTS 0x01 /* rw: access rights (array of int) */ -#define SCM_CREDENTIALS 0x02 /* rw: struct ucred */ -#define SCM_SECURITY 0x03 /* rw: security label */ -#define SCM_TIMESTAMP SO_TIMESTAMP +#define SCM_RIGHTS 0x01 /* rw: access rights (array of int) */ +#define SCM_CREDENTIALS 0x02 /* rw: struct ucred */ +#define SCM_SECURITY 0x03 /* rw: security label */ +#define SCM_TIMESTAMP SO_TIMESTAMP +#define SCM_TIMESTAMPNS SO_TIMESTAMPNS +#define SCM_TIMESTAMPING SO_TIMESTAMPING /* Desired design of maximum size and alignment (see RFC2553) */
