svn commit: r237907 - stable/9/share/man/man4

Michael Tuexen tuexen at FreeBSD.org
Sun Jul 1 08:23:17 UTC 2012


Author: tuexen
Date: Sun Jul  1 08:23:16 2012
New Revision: 237907
URL: http://svn.freebsd.org/changeset/base/237907

Log:
  MFC r236640:
  The cmsg_len field includes the cmsg header. So use CMSG_LEN().

Modified:
  stable/9/share/man/man4/ip.4
Directory Properties:
  stable/9/share/   (props changed)
  stable/9/share/man/   (props changed)
  stable/9/share/man/man4/   (props changed)

Modified: stable/9/share/man/man4/ip.4
==============================================================================
--- stable/9/share/man/man4/ip.4	Sun Jul  1 08:21:08 2012	(r237906)
+++ stable/9/share/man/man4/ip.4	Sun Jul  1 08:23:16 2012	(r237907)
@@ -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-stable-9 mailing list