mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:45:07 -05:00
socket: add support for sending and receiving descriptors
Add support for the SCM_RIGHTS control message used in communication with the privops helper.
This commit is contained in:
3
socket.h
3
socket.h
@@ -38,6 +38,7 @@
|
||||
|
||||
/* Flags for receiving and sending messages */
|
||||
#define SCK_FLAG_MSG_ERRQUEUE 1
|
||||
#define SCK_FLAG_MSG_DESCRIPTOR 2
|
||||
|
||||
/* Maximum number of received messages */
|
||||
#define SCK_MAX_RECV_MESSAGES 4
|
||||
@@ -70,6 +71,8 @@ typedef struct {
|
||||
int l2_length;
|
||||
int tx_flags;
|
||||
} timestamp;
|
||||
|
||||
int descriptor;
|
||||
} SCK_Message;
|
||||
|
||||
/* Initialisation function */
|
||||
|
||||
Reference in New Issue
Block a user