Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2008 13:17:18 +0000
From:      Bruce M Simpson <bms@incunabulum.net>
To:        gnn@freebsd.org
Cc:        FreeBSD-Net mailing list <freebsd-net@freebsd.org>
Subject:   Re: IPV6_TCLASS missing from ip6(4)
Message-ID:  <47BD79DE.3000004@incunabulum.net>
In-Reply-To: <m24pc2iznx.wl%gnn@neville-neil.com>
References:  <47BC7081.1060205@incunabulum.net> <m24pc2iznx.wl%gnn@neville-neil.com>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47BD79DE.3000004>