Bug 1855

Summary: set traffic class on IPv6 packets
Product: Portable OpenSSH Reporter: Colin Watson <cjwatson>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: enhancement CC: djm
Priority: P2    
Version: 5.8p1   
Hardware: All   
OS: Linux   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498297
Attachments:
Description Flags
set IPV6_TCLASS for IPv6 connections none

Description Colin Watson 2011-02-09 01:53:21 AEDT
Created attachment 1994 [details]
set IPV6_TCLASS for IPv6 connections

Lionel Elie Mamane <lionel@mamane.lu> sent this report as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498297:

  OpenSSH sets the IPv4 ToS (Type of Service) byte to "low delay" or "max throughput" depending on the situation, but does not set the
equivalent IPv6 Traffic Class byte. As far as I understand, these two
bytes are supposed to be used the same way, so here's a patch to set
the said traffic class byte on IPv6 packets.

I've attached a version of his patch updated to current HEAD, and adding a guard against systems where IPV6_TCLASS isn't defined.
Comment 1 Damien Miller 2011-05-15 14:04:16 AEST
This has been committed and will be in OpenSSH 5.9. Thanks
Comment 2 Damien Miller 2011-09-06 15:33:06 AEST
close resolved bugs now that openssh-5.9 has been released