Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2012 15:12:50 +0200
From:      Andre Oppermann <andre@freebsd.org>
To:        Michael Tuexen <tuexen@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r236959 - in head: share/man/man4 sys/netinet
Message-ID:  <4FD891D2.5080306@freebsd.org>
In-Reply-To: <201206121402.q5CE2cs1057392@svn.freebsd.org>
References:  <201206121402.q5CE2cs1057392@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD891D2.5080306>