mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Correct the returned message lengths for timeval and bintime control
messages (SO_BINTIME, SO_TIMEVAL). Obtained from: phk
This commit is contained in:
parent
b887a1555c
commit
599c412493
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249166
|
@ -28,7 +28,7 @@
|
|||
.\" @(#)getsockopt.2 8.4 (Berkeley) 5/2/95
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd February 26, 2012
|
||||
.Dd April 5, 2013
|
||||
.Dt GETSOCKOPT 2
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -437,7 +437,7 @@ The
|
|||
.Vt cmsghdr
|
||||
fields have the following values for TIMESTAMP:
|
||||
.Bd -literal
|
||||
cmsg_len = sizeof(struct timeval);
|
||||
cmsg_len = CMSG_LEN(sizeof(struct timeval));
|
||||
cmsg_level = SOL_SOCKET;
|
||||
cmsg_type = SCM_TIMESTAMP;
|
||||
.Ed
|
||||
|
@ -445,7 +445,7 @@ fields have the following values for TIMESTAMP:
|
|||
and for
|
||||
.Dv SO_BINTIME :
|
||||
.Bd -literal
|
||||
cmsg_len = sizeof(struct bintime);
|
||||
cmsg_len = CMSG_LEN(sizeof(struct bintime));
|
||||
cmsg_level = SOL_SOCKET;
|
||||
cmsg_type = SCM_BINTIME;
|
||||
.Ed
|
||||
|
|
Loading…
Reference in a new issue