diff options
| -rw-r--r-- | man7/socket.7 | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/man7/socket.7 b/man7/socket.7 index 7f309cb8ea..ee551dbcfd 100644 --- a/man7/socket.7 +++ b/man7/socket.7 @@ -26,11 +26,6 @@ .\" Seems to do something similar to getpeername(), but then .\" why is it necessary / how does it differ? .\" -.\" SO_TIMESTAMPNS (2.6.22) -.\" Documentation/networking/timestamping.txt -.\" commit 92f37fd2ee805aa77925c1e64fd56088b46094fc -.\" Author: Eric Dumazet <dada1@cosmosbay.com> -.\" .\" SO_TIMESTAMPING (2.6.30) .\" Documentation/networking/timestamping.txt .\" commit cb9eff097831007afb30d64373f29d99825d0068 @@ -946,6 +941,24 @@ See .BR cmsg (3) for details on control messages. .TP +.B SO_TIMESTAMPNS +Enable or disable the receiving of the +.B SO_TIMESTAMPNS +control message. +The timestamp control message is sent with level +.B SOL_SOCKET +and the +.I cmsg_data +field is a +.I "struct timespec" +indicating the +reception time of the last packet passed to the user in this call. +The clock used for the timestamp is +.BR CLOCK_REALTIME . +See +.BR cmsg (3) +for details on control messages. +.TP .B SO_TYPE Gets the socket type as an integer (e.g., .BR SOCK_STREAM ). @@ -1075,13 +1088,17 @@ See for a description of .IR "struct timeval" . .\" -This ioctl should be used only if the socket option +This ioctl should be used only if the socket options .B SO_TIMESTAMP -is not set on the socket. +and +.B SO_TIMESTAMPNS +are not set on the socket. Otherwise, it returns the timestamp of the last packet that was received while .B SO_TIMESTAMP -was not set, or it fails if no such packet has been received, +and +.B SO_TIMESTAMPNS +were not set, or it fails if no such packet has been received, (i.e., .BR ioctl (2) returns \-1 with |
