FreeBSD Bugzilla – Attachment 74442 Details for
Bug 107696
getsockopt(2) does not document SO_TIMESTAMP and SO_BINSTAMP options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 966 bytes, created by
Rob Robertson
on 2007-01-08 22:20:12 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Rob Robertson
Created:
2007-01-08 22:20:12 UTC
Size:
966 bytes
patch
obsolete
>*** getsockopt.2.orig Mon Jan 8 14:44:55 2007 >--- getsockopt.2 Mon Jan 8 15:03:56 2007 >*************** >*** 364,369 **** >--- 364,395 ---- > closed returns with the error > .Er EPIPE . > .Pp >+ If the >+ .Dv SO_TIMESTAMP >+ or >+ .Dv SO_BINTIME >+ option is enabled on a >+ .Dv SOCK_DGRAM >+ socket, the >+ .Xr recvmsg 2 >+ call will return a timestamp corresponding to when the data- >+ gram was received. The msg_control field in the msghdr structure points >+ to a buffer that contains a cmsghdr structure followed by a struct >+ timeval for SO_TIMESTAMP and struct bintime for SO_BINTIME. The >+ cmsghdr fields have the following values for TIMESTAMP: >+ .Bd -literal >+ cmsg_len = sizeof(struct timeval) >+ cmsg_level = SOL_SOCKET >+ cmsg_type = SCM_TIMESTAMP >+ .Ed >+ .Pp >+ and for SO_BINTIME: >+ .Bd -literal >+ cmsg_len = sizeof(struct bintime) >+ cmsg_level = SOL_SOCKET >+ cmsg_type = SCM_BINTIME >+ .Ed >+ .Pp > Finally, > .Dv SO_TYPE > and
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 107696
: 74442