From owner-svn-src-all@FreeBSD.ORG Wed Jun 13 13:13:02 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D8FB1065676 for ; Wed, 13 Jun 2012 13:13:02 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9E0668FC1F for ; Wed, 13 Jun 2012 13:13:01 +0000 (UTC) Received: (qmail 72460 invoked from network); 13 Jun 2012 15:10:08 -0000 Received: from c00l3r.networx.ch (HELO [127.0.0.1]) ([62.48.2.2]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 13 Jun 2012 15:10:08 -0000 Message-ID: <4FD891D2.5080306@freebsd.org> Date: Wed, 13 Jun 2012 15:12:50 +0200 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Michael Tuexen References: <201206121402.q5CE2cs1057392@svn.freebsd.org> In-Reply-To: <201206121402.q5CE2cs1057392@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2012 13:13:02 -0000 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