svn commit: r236959 - in head: share/man/man4 sys/netinet
Andre Oppermann
andre at freebsd.org
Wed Jun 13 13:13:02 UTC 2012
On 12.06.2012 16:02, Michael Tuexen wrote:
> Author: tuexen
> Date: Tue Jun 12 14:02:38 2012
> New Revision: 236959
> URL: http://svn.freebsd.org/changeset/base/236959
>
> Log:
> Add a IP_RECVTOS socket option to receive for received UDP/IPv4
> packets a cmsg of type IP_RECVTOS which contains the TOS byte.
> Much like IP_RECVTTL does for TTL. This allows to implement a
> protocol on top of UDP and implementing ECN.
You may want to consider to alias IP_RECVTOS with IP_TOS as it is
done with IP_SENDSRCADDR+IP_RECVDSTADDR to allow for simpler replying
of received UDP packets. That way IP_RECVTOS has the same ip socket
option number and it can be used for direct TOS reflection.
--
Andre
More information about the svn-src-all
mailing list