diff options
author | Thomas Egerer <thomas.egerer@secunet.com> | 2015-07-27 08:50:19 (GMT) |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2015-08-11 10:41:34 (GMT) |
commit | eae8dee992af622fd992cb2370cd596ac80ef141 (patch) | |
tree | 4ca6b7ccfd2daf53b25670f7643d6bbb91993053 /net/ipv6/ip6_input.c | |
parent | 07a51cd3794960548627a27aae68c1446341db32 (diff) | |
download | linux-eae8dee992af622fd992cb2370cd596ac80ef141.tar.xz |
xfrm6: Fix IPv6 ECN decapsulation
Using ipv6_get_dsfield on the outer IP header implies that inner and
outer header are of the the same address family. For interfamily
tunnels, particularly 646, the code reading the DSCP field obtains the
wrong values (IHL and the upper four bits of the DSCP field).
This can cause the code to detect a congestion encoutered state in the
outer header and enable the corresponding bits in the inner header, too.
Since the DSCP field is stored in the xfrm mode common buffer
independently from the IP version of the outer header, it's safe (and
correct) to take this value from there.
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv6/ip6_input.c')
0 files changed, 0 insertions, 0 deletions