mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 08:25:06 -05:00
ntp: don't request TX timestamp when SW/HW timestamping is disabled
This commit is contained in:
@@ -682,6 +682,9 @@ NIO_Linux_RequestTxTimestamp(struct msghdr *msg, int cmsglen, int sock_fd)
|
|||||||
{
|
{
|
||||||
struct cmsghdr *cmsg;
|
struct cmsghdr *cmsg;
|
||||||
|
|
||||||
|
if (!ts_flags)
|
||||||
|
return cmsglen;
|
||||||
|
|
||||||
/* Check if TX timestamping is disabled on this socket */
|
/* Check if TX timestamping is disabled on this socket */
|
||||||
if (permanent_ts_options || !NIO_IsServerSocket(sock_fd))
|
if (permanent_ts_options || !NIO_IsServerSocket(sock_fd))
|
||||||
return cmsglen;
|
return cmsglen;
|
||||||
|
|||||||
Reference in New Issue
Block a user