IP_RECVTTL socket option.

"Matthew N. Dodd" <[email protected]> Tue, 29 Apr 2003 18:15:30 -0400 (EDT)
Newsgroups gmane.os.bsd.api.general
Message-ID <[email protected]>
I've committed the IP_RECVTTL socket option to FreeBSD.

(From ip(4))
%%%
     If the IP_RECVTTL option is enabled on a SOCK_DGRAM socket, the
     recvmsg(2) call will return the IP TTL (time to live) field for a UDP
     datagram.  The msg_control field in the msghdr structure points to a
     buffer that contains a cmsghdr structure followed by the TTL.  The cms-
     ghdr fields have the following values:

     cmsg_len = sizeof(u_char)
     cmsg_level = IPPROTO_IP
     cmsg_type = IP_RECVTTL
%%%

This is needed for things like:

http://files.multicastdns.org/draft-cheshire-dnsext-multicastdns.txt

It would be useful of NetBSD and OpenBSD provided this feature as well.

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [email protected] |       2 x '84 Volvo 245DL        | ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |

---------------------------------------------------------------------
The BSD APIs Discussion Mailing List
To unsubscribe:
send "unsubscribe bsd-api-discuss" to majordomo-of7zbby7T3pWk0Htik3J/[email protected]