ntp: don't request TX timestamp when SW/HW timestamping is disabled
This commit is contained in:
parent
3e854006c7
commit
4ddadd5622
1 changed files with 3 additions and 0 deletions
|
@ -682,6 +682,9 @@ NIO_Linux_RequestTxTimestamp(struct msghdr *msg, int cmsglen, int sock_fd)
|
|||
{
|
||||
struct cmsghdr *cmsg;
|
||||
|
||||
if (!ts_flags)
|
||||
return cmsglen;
|
||||
|
||||
/* Check if TX timestamping is disabled on this socket */
|
||||
if (permanent_ts_options || !NIO_IsServerSocket(sock_fd))
|
||||
return cmsglen;
|
||||
|
|
Loading…
Reference in a new issue