From owner-freebsd-net@FreeBSD.ORG Wed Jun 6 17:54:29 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FD80106566C; Wed, 6 Jun 2012 17:54:29 +0000 (UTC) (envelope-from Michael.Tuexen@lurchi.franken.de) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by mx1.freebsd.org (Postfix) with ESMTP id 0447D8FC16; Wed, 6 Jun 2012 17:54:29 +0000 (UTC) Received: from [192.168.1.103] (p508FA25E.dip.t-dialin.net [80.143.162.94]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 704271C0B4600; Wed, 6 Jun 2012 19:54:27 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: Michael Tuexen In-Reply-To: Date: Wed, 6 Jun 2012 19:54:26 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <8D7E9322-0973-4657-B3FE-8A480C0E0304@lurchi.franken.de> References: <1D03F00E-2777-4B0B-8E1C-860EA115B6AF@lurchi.franken.de> <7731AEE8-D1BF-4297-8F75-454149D3E303@lurchi.franken.de> <5A4A73CF-95FB-4B33-9652-2E4FD517CF5F@lurchi.franken.de> <5399FCC6-BDC4-47DD-9948-ADD16264EE46@lurchi.franken.de> To: Adrian Chadd X-Mailer: Apple Mail (2.1278) Cc: "freebsd-net@freebsd.org mailing list" Subject: Re: IP_RECVTOS X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2012 17:54:29 -0000 On Jun 6, 2012, at 7:17 PM, Adrian Chadd wrote: > Hi, >=20 > For TCP, I've seen the network layer change things (eg setting bits on > incoming traffic to mark which interface it came in on), so you can't > guarantee the outbound ToS =3D=3D inbound ToS. I've not said that inbound =3D=3D outbound... I just wanted to make = clear that there is a socket option of setting the TOS byte for outgoing traffic. The TCP stack might overwrite the ECN bits... I need the IP_RECVTOS functionality for implementing a transport stack = supporting ECN in userland, actually running the SCTP kernel sources (with some = glue code) in userland on top of UDP... Best regards Michael >=20 >=20 >=20 > Adrian >=20