From owner-freebsd-net@FreeBSD.ORG Thu Feb 21 13:17:21 2008 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 C316F16A401 for ; Thu, 21 Feb 2008 13:17:21 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.freebsd.org (Postfix) with ESMTP id 8264D13C4E8 for ; Thu, 21 Feb 2008 13:17:21 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 93FD193C26; Thu, 21 Feb 2008 08:17:20 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Thu, 21 Feb 2008 08:17:20 -0500 X-Sasl-enc: 3o4/zxx+9PvZS4Z3K7tVS4jJIe6WvdApaQ1zlXYjm04m 1203599839 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id C1C0876DA; Thu, 21 Feb 2008 08:17:19 -0500 (EST) Message-ID: <47BD79DE.3000004@incunabulum.net> Date: Thu, 21 Feb 2008 13:17:18 +0000 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.9 (X11/20080207) MIME-Version: 1.0 To: gnn@freebsd.org References: <47BC7081.1060205@incunabulum.net> In-Reply-To: Content-Type: multipart/mixed; boundary="------------090801070009050804080503" Cc: FreeBSD-Net mailing list Subject: Re: IPV6_TCLASS missing from ip6(4) 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: Thu, 21 Feb 2008 13:17:21 -0000 This is a multi-part message in MIME format. --------------090801070009050804080503 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit gnn@freebsd.org wrote: > At Wed, 20 Feb 2008 18:25:05 +0000, > Bruce M Simpson wrote: > >> I just noticed that whilst the socket code appears to support >> IPV6_TCLASS, we don't document it. >> >> I haven't raised a PR for this issue yet nor have I written a patch. >> > > Please do both :-) > Done. TCLASS is in the synopsis, hasn't hit the database yet. Here's the patch just in case. [I really wish we used Bugzilla, I shouldn't have to go through the SMTP rigmarole... I can log into freefall, but that's a privileged position. Also, Mercurial does RSS feeds for commits like git does, further removing the need for vulnerable and messy SMTP...] later BMS --------------090801070009050804080503 Content-Type: text/x-patch; name="ip6.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ip6.diff" Index: src/share/man/man4/ip6.4 =================================================================== RCS file: /home/ncvs/src/share/man/man4/ip6.4,v retrieving revision 1.22 diff -u -p -r1.22 ip6.4 --- src/share/man/man4/ip6.4 29 Sep 2006 16:16:41 -0000 1.22 +++ src/share/man/man4/ip6.4 21 Feb 2008 13:06:20 -0000 @@ -30,7 +30,7 @@ .\" .\" $FreeBSD: src/share/man/man4/ip6.4,v 1.22 2006/09/29 16:16:41 bms Exp $ .\" -.Dd September 29, 2006 +.Dd Februrary 21, 2008 .Dt IP6 4 .Os .Sh NAME @@ -147,7 +147,6 @@ The following socket options are support .It Dv IPV6_UNICAST_HOPS Fa "int *" Get or set the default hop limit header field for outgoing unicast datagrams sent on this socket. -A value of \-1 resets to the default value. .\" .It Dv IPV6_RECVOPTS Fa "int *" .\" Get or set the status of whether all header options will be .\" delivered along with the datagram when it is received. @@ -312,6 +311,18 @@ The routine and family of routines may be used to manipulate this data. .Pp This option requires superuser privileges. +.It Dv IPV6_TCLASS Fa "int *" +Get or set the value of the traffic class field used for outgoing datagrams +on this socket. +The value must be between \-1 and 255. +A value of \-1 resets to the default value. +.It Dv IPV6_RECVTCLASS Fa "int *" +Get or set the status of whether the traffic class header field will be +provided as ancillary data along with the payload in subsequent +.Xr recvmsg 2 +calls. +The header field is stored as a single value of type +.Vt int . .It Dv IPV6_RTHDR Fa "int *" Get or set whether the routing header from subsequent packets will be provided as ancillary data along with the payload in subsequent --------------090801070009050804080503--