diff options
Diffstat (limited to 'man7/socket.7')
| -rw-r--r-- | man7/socket.7 | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/man7/socket.7 b/man7/socket.7 index c547afcf78..040452155a 100644 --- a/man7/socket.7 +++ b/man7/socket.7 @@ -425,6 +425,21 @@ capability. Get and clear the pending socket error. Only valid as a .BR getsockopt (). Expects an integer. +.TP +.B SO_TIMESTAMP +Enable or disable the receiving of the +.B SO_TIMESTAMP +control message. +The time stamp control message is sent with level +.B SOL_SOCKET +and the +.I cmsg_data field is a +.I "struct timeval" +indicating the +reception time of the last packet passed to the user in this call. +See +.BR cmsg (3) +for details on control messages. .SH SIGNALS When writing onto a connection-oriented socket that has been shut down (by the local or the remote end) @@ -518,12 +533,20 @@ These operations can be accessed using .B SIOCGSTAMP Return a .I struct timeval -with the receive timestamp of the last packet passed to the user. This is useful -for accurate round trip time measurements. See +with the receive timestamp of the last packet passed to the user. +This is useful for accurate round trip time measurements. +See .BR setitimer (2) for a description of .IR "struct timeval" . .\" +This ioctl should only be used if the +.B SO_TIMESTAMP +socket option has not been set on the socket. +Otherwise, it returns the time stamp of the last packet received without +.B SO_TIMESTAMP +being set or it returns +.BR ENOENT . .TP .BR SIOCSPGRP Set the process or process group to send |
