svn commit: r236640 - head/share/man/man4
Michael Tuexen
tuexen at FreeBSD.org
Tue Jun 5 20:48:14 UTC 2012
Author: tuexen
Date: Tue Jun 5 20:48:13 2012
New Revision: 236640
URL: http://svn.freebsd.org/changeset/base/236640
Log:
The cmsg_len field includes the cmsg header. So use CMSG_LEN().
MFC after: 3 days
Modified:
head/share/man/man4/ip.4
Modified: head/share/man/man4/ip.4
==============================================================================
--- head/share/man/man4/ip.4 Tue Jun 5 20:39:12 2012 (r236639)
+++ head/share/man/man4/ip.4 Tue Jun 5 20:48:13 2012 (r236640)
@@ -165,7 +165,7 @@ The
.Vt cmsghdr
fields have the following values:
.Bd -literal
-cmsg_len = sizeof(struct in_addr)
+cmsg_len = CMSG_LEN(sizeof(struct in_addr))
cmsg_level = IPPROTO_IP
cmsg_type = IP_RECVDSTADDR
.Ed
@@ -184,7 +184,7 @@ structure followed by the
address.
The cmsghdr fields should have the following values:
.Bd -literal
-cmsg_len = sizeof(struct in_addr)
+cmsg_len = CMSG_LEN(sizeof(struct in_addr))
cmsg_level = IPPROTO_IP
cmsg_type = IP_SENDSRCADDR
.Ed
@@ -279,7 +279,7 @@ that contains a cmsghdr structure follow
.Tn TTL .
The cmsghdr fields have the following values:
.Bd -literal
-cmsg_len = sizeof(u_char)
+cmsg_len = CMSG_LEN(sizeof(u_char))
cmsg_level = IPPROTO_IP
cmsg_type = IP_RECVTTL
.Ed
@@ -307,7 +307,7 @@ The
.Vt cmsghdr
fields have the following values:
.Bd -literal
-cmsg_len = sizeof(struct sockaddr_dl)
+cmsg_len = CMSG_LEN(sizeof(struct sockaddr_dl))
cmsg_level = IPPROTO_IP
cmsg_type = IP_RECVIF
.Ed
More information about the svn-src-all
mailing list