Date: Wed, 6 Jun 2012 09:20:37 +0200 From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de> To: Adrian Chadd <adrian@freebsd.org> Cc: "freebsd-net@freebsd.org mailing list" <freebsd-net@freebsd.org> Subject: Re: IP_RECVTOS Message-ID: <5A4A73CF-95FB-4B33-9652-2E4FD517CF5F@lurchi.franken.de> In-Reply-To: <CAJ-VmomrqRLkyTCFsgfcAsXC1V4KubsZ3AeY2K%2B6X7u-yjBOoQ@mail.gmail.com> References: <1D03F00E-2777-4B0B-8E1C-860EA115B6AF@lurchi.franken.de> <CAJ-Vmona0kHnOKXdmQDYksqGifmd5Fjgg-YniTcrHFZvZBv--Q@mail.gmail.com> <7731AEE8-D1BF-4297-8F75-454149D3E303@lurchi.franken.de> <CAJ-VmomrqRLkyTCFsgfcAsXC1V4KubsZ3AeY2K%2B6X7u-yjBOoQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jun 6, 2012, at 8:50 AM, Adrian Chadd wrote: > On 5 June 2012 15:11, Michael Tuexen = <Michael.Tuexen@lurchi.franken.de> wrote: >=20 >> 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. >=20 > Oh sweet, you can do that? Yes, I really would like to see this > particular feature in FreeBSD. >=20 > Thanks so much for coding it up! >=20 > 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 =3D CMSG_LEN(sizeof(u_char)) cmsg_level =3D IPPROTO_IP cmsg_type =3D IP_RECVTOS Best regards Michael >=20 >=20 >=20 > Adrian >=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5A4A73CF-95FB-4B33-9652-2E4FD517CF5F>