Correct the returned message lengths for timeval and bintime control

messages (SO_BINTIME, SO_TIMEVAL).

Obtained from:	phk
This commit is contained in:
gnn 2013-04-05 18:09:43 +00:00
parent d6e3efdde9
commit 8bbd0c98b7

View File

@ -28,7 +28,7 @@
.\" @(#)getsockopt.2 8.4 (Berkeley) 5/2/95 .\" @(#)getsockopt.2 8.4 (Berkeley) 5/2/95
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd February 26, 2012 .Dd April 5, 2013
.Dt GETSOCKOPT 2 .Dt GETSOCKOPT 2
.Os .Os
.Sh NAME .Sh NAME
@ -437,7 +437,7 @@ The
.Vt cmsghdr .Vt cmsghdr
fields have the following values for TIMESTAMP: fields have the following values for TIMESTAMP:
.Bd -literal .Bd -literal
cmsg_len = sizeof(struct timeval); cmsg_len = CMSG_LEN(sizeof(struct timeval));
cmsg_level = SOL_SOCKET; cmsg_level = SOL_SOCKET;
cmsg_type = SCM_TIMESTAMP; cmsg_type = SCM_TIMESTAMP;
.Ed .Ed
@ -445,7 +445,7 @@ fields have the following values for TIMESTAMP:
and for and for
.Dv SO_BINTIME : .Dv SO_BINTIME :
.Bd -literal .Bd -literal
cmsg_len = sizeof(struct bintime); cmsg_len = CMSG_LEN(sizeof(struct bintime));
cmsg_level = SOL_SOCKET; cmsg_level = SOL_SOCKET;
cmsg_type = SCM_BINTIME; cmsg_type = SCM_BINTIME;
.Ed .Ed