On Jun 6, 2012, at 8:50 AM, Adrian Chadd wrote: > On 5 June 2012 15:11, Michael Tuexen <michael.tue...@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 > _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"