From 935f830e16690d6ed6adf567c8eb862de11a02dd Mon Sep 17 00:00:00 2001 From: wenquan1 Date: Wed, 11 Mar 2026 16:47:44 +0800 Subject: [PATCH] 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 --- 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) */