summaryrefslogtreecommitdiffstats
path: root/share/man/man4/ip.4
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-04-29 21:36:18 +0000
committermdodd <mdodd@FreeBSD.org>2003-04-29 21:36:18 +0000
commit6afaafd2aaf53c793eefeb6d602c1038625e9bff (patch)
tree88134d6cb4a3f69dc73f37d3de27f67b6a7b4f0c /share/man/man4/ip.4
parent3633577d4cec2d36fcf5cffc93febd9cb7c2ad8f (diff)
downloadFreeBSD-src-6afaafd2aaf53c793eefeb6d602c1038625e9bff.zip
FreeBSD-src-6afaafd2aaf53c793eefeb6d602c1038625e9bff.tar.gz
IP_RECVTTL socket option.
Reviewed by: Stuart Cheshire <cheshire@apple.com>
Diffstat (limited to 'share/man/man4/ip.4')
-rw-r--r--share/man/man4/ip.422
1 files changed, 22 insertions, 0 deletions
diff --git a/share/man/man4/ip.4 b/share/man/man4/ip.4
index 93bf0de..14f8592 100644
--- a/share/man/man4/ip.4
+++ b/share/man/man4/ip.4
@@ -164,6 +164,28 @@ control message from
can be used directly as a control message for
.Xr sendmsg 2 .
.Pp
+If the
+.Dv IP_RECVTTL
+option is enabled on a
+.Dv SOCK_DGRAM
+socket, the
+.Xr recvmsg 2
+call will return the
+.Tn IP
+.Tn TTL
+(time to live) field for a
+.Tn UDP
+datagram.
+The msg_control field in the msghdr structure points to a buffer
+that contains a cmsghdr structure followed by the
+.Tn TTL .
+The cmsghdr fields have the following values:
+.Bd -literal
+cmsg_len = sizeof(u_char)
+cmsg_level = IPPROTO_IP
+cmsg_type = IP_RECVTTL
+.Ed
+.Pp
If the
.Dv IP_RECVIF
option is enabled on a
OpenPOWER on IntegriCloud