diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-04-29 21:36:18 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-04-29 21:36:18 +0000 |
commit | 6afaafd2aaf53c793eefeb6d602c1038625e9bff (patch) | |
tree | 88134d6cb4a3f69dc73f37d3de27f67b6a7b4f0c /share | |
parent | 3633577d4cec2d36fcf5cffc93febd9cb7c2ad8f (diff) | |
download | FreeBSD-src-6afaafd2aaf53c793eefeb6d602c1038625e9bff.zip FreeBSD-src-6afaafd2aaf53c793eefeb6d602c1038625e9bff.tar.gz |
IP_RECVTTL socket option.
Reviewed by: Stuart Cheshire <cheshire@apple.com>
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man4/ip.4 | 22 |
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 |