mirror of
https://github.com/apache/nuttx.git
synced 2026-10-02 11:48:02 +00:00
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 <wenquan1@xiaomi.com>
This commit is contained in:
parent
cf78962356
commit
935f830e16
1 changed files with 6 additions and 4 deletions
|
|
@ -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) */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue