IP_RECVTOS

Michael Tuexen Michael.Tuexen at lurchi.franken.de
Tue Jun 5 20:33:58 UTC 2012


Dear all,

there is currently no way to receive the TOS byte of a received UDP/IPv4 packet.
The attached patch adds a socket option (IP_RECVTOS) which you can use
to get a cmsg of type (IP_RECVTOS) which contains the TOS byte. Much like
IP_RECVTTL does for TTL. Any comments/objections? If there are none, I would
like to commit this to head soon.

Best regards
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: recvtos.patch
Type: application/octet-stream
Size: 3259 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20120605/8284b9d5/recvtos.obj


More information about the freebsd-net mailing list