IP_RECVTOS
Michael Tuexen
Michael.Tuexen at lurchi.franken.de
Wed Jun 6 07:20:41 UTC 2012
On Jun 6, 2012, at 8:50 AM, Adrian Chadd wrote:
> On 5 June 2012 15:11, Michael Tuexen <Michael.Tuexen at lurchi.franken.de> wrote:
>
>> Why should it get lost? If there are no objections, I'll commit it. If there
>> are, we'll see if we can resolve it.
>
> Oh sweet, you can do that? Yes, I really would like to see this
> particular feature in FreeBSD.
>
> Thanks so much for coding it up!
>
> Do you think it's worth adding an example or two which uses this?
Not sure how to add an example, but I've also a paragraph going into
man ip:
If the IP_RECVTOS option is enabled on a SOCK_DGRAM socket, the
recvmsg(2) call will return the IP TOS (type of service) 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 TOS. The cms-
ghdr fields have the following values:
cmsg_len = CMSG_LEN(sizeof(u_char))
cmsg_level = IPPROTO_IP
cmsg_type = IP_RECVTOS
Best regards
Michael
>
>
>
> Adrian
>
More information about the freebsd-net
mailing list