]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
sit tunnels: propagate IPv6 transport class to IPv4 Type of Service
authorLionel Elie Mamane <lionel@mamane.lu>
Sat, 13 Aug 2011 14:04:38 +0000 (14:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Aug 2011 23:28:55 +0000 (16:28 -0700)
commitc2bceb3d7f145af5a0916bea700f2f9d380901ea
tree90a46a5155a4d9b23791426716ec596e494f5fd7
parent588dc91151d99e9307c2f9a8468453274fe43ecd
sit tunnels: propagate IPv6 transport class to IPv4 Type of Service

sit tunnels (IPv6 tunnel over IPv4) do not implement the "tos inherit"
case to copy the IPv6 transport class byte from the inner packet to
the IPv4 type of service byte in the outer packet. By contrast, ipip
tunnels and GRE tunnels do.

This patch, adapted from the similar code in net/ipv4/ipip.c and
net/ipv4/ip_gre.c, implements that.

This patch applies to 3.0.1, and has been tested on that version.

Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c