Further refinement of SO_TIMESTAMP from Urs Thuermann.

This commit is contained in:
Michael Kerrisk 2005-12-13 10:46:50 +00:00
parent 010b1b8e1c
commit 7199370f3a
1 changed files with 10 additions and 6 deletions

View File

@ -430,7 +430,7 @@ Expects an integer.
Enable or disable the receiving of the
.B SO_TIMESTAMP
control message.
The time stamp control message is sent with level
The timestamp control message is sent with level
.B SOL_SOCKET
and the
.I cmsg_data field is a
@ -540,13 +540,17 @@ See
for a description of
.IR "struct timeval" .
.\"
This ioctl should only be used if the
This ioctl should only be used if the socket option
.B SO_TIMESTAMP
socket option has not been set on the socket.
Otherwise, it returns the time stamp of the last packet received without
is not set on the socket.
Otherwise, it returns the timestamp of the
last packet that was received while
.B SO_TIMESTAMP
being set or it returns
.BR ENOENT .
was not set, or it fails if no such packet has been received,
(i.e.,
.BR ioctl ()
returns \-1 with errno set to
.BR ENOENT ).
.TP
.BR SIOCSPGRP
Set the process or process group to send