diff options
Diffstat (limited to 'net/ipv6/xfrm6_mode_tunnel.c')
-rw-r--r-- | net/ipv6/xfrm6_mode_tunnel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/xfrm6_mode_tunnel.c b/net/ipv6/xfrm6_mode_tunnel.c index fd84e2217274..9a43ea722481 100644 --- a/net/ipv6/xfrm6_mode_tunnel.c +++ b/net/ipv6/xfrm6_mode_tunnel.c | |||
@@ -95,7 +95,8 @@ static int xfrm6_tunnel_input(struct xfrm_state *x, struct sk_buff *skb) | |||
95 | nh = skb_network_header(skb); | 95 | nh = skb_network_header(skb); |
96 | if (nh[IP6CB(skb)->nhoff] == IPPROTO_IPV6) { | 96 | if (nh[IP6CB(skb)->nhoff] == IPPROTO_IPV6) { |
97 | if (x->props.flags & XFRM_STATE_DECAP_DSCP) | 97 | if (x->props.flags & XFRM_STATE_DECAP_DSCP) |
98 | ipv6_copy_dscp(ipv6_hdr(skb), ipipv6_hdr(skb)); | 98 | ipv6_copy_dscp(ipv6_get_dsfield(ipv6_hdr(skb)), |
99 | ipipv6_hdr(skb)); | ||
99 | if (!(x->props.flags & XFRM_STATE_NOECN)) | 100 | if (!(x->props.flags & XFRM_STATE_NOECN)) |
100 | ipip6_ecn_decapsulate(skb); | 101 | ipip6_ecn_decapsulate(skb); |
101 | } else { | 102 | } else { |