From owner-freebsd-net@FreeBSD.ORG Tue Jun 5 21:37:32 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8F4AD1065674 for ; Tue, 5 Jun 2012 21:37:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 62DC38FC08 for ; Tue, 5 Jun 2012 21:37:32 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so8522036pbb.13 for ; Tue, 05 Jun 2012 14:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=5zZSkC1E3M0D2GJ7AzSnBl5zWb2WKRepQe21Eo3UHZU=; b=IXl3s4Ga/TqsSTj3omiRV30aL0vz4WrdH7a+fQYevUjFApf2epw/cTypZ8TbYtDIi7 5l/uwjK2aGbvKPWxYZDk3R3ffiUG0+i0srzcO4lxkmjWqfjMxY9BLzbwlp+SnJZE4qqk jAIwatelKU+LwyF2uoLlMGC5+8SZE1ZXqfqFHQXnE2gPco40oNasZZODkNsxuftiUhrG EY9drKtR3qyxzZ4N9Mw21nTb/mwyB4rGwxcYYAmONEsWinID/+k9qZP/9tULhOuw6Fb4 nbM9JxFbZZu2lOZbXVS1YkJ1UUepLdVWLeBVAYHiKt1X30NA/SNcwnSG4Euy7EXDjT5A O1lQ== MIME-Version: 1.0 Received: by 10.68.211.170 with SMTP id nd10mr16247767pbc.68.1338932251917; Tue, 05 Jun 2012 14:37:31 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.91.18 with HTTP; Tue, 5 Jun 2012 14:37:31 -0700 (PDT) In-Reply-To: <1D03F00E-2777-4B0B-8E1C-860EA115B6AF@lurchi.franken.de> References: <1D03F00E-2777-4B0B-8E1C-860EA115B6AF@lurchi.franken.de> Date: Tue, 5 Jun 2012 14:37:31 -0700 X-Google-Sender-Auth: xlNN47dfMuAnvZ7ULPEXJial2MY Message-ID: From: Adrian Chadd To: Michael Tuexen Content-Type: text/plain; charset=ISO-8859-1 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: Tue, 05 Jun 2012 21:37:32 -0000 Hi, can you please wrap this up in a PR so it's not lost? thanks, Adrian On 5 June 2012 13:33, Michael Tuexen wrote: > 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 > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"