diff options
| -rw-r--r-- | net/ipv6/ip6_tunnel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index 281aee42d3f0..df30976f6dfd 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c | |||
| @@ -962,8 +962,8 @@ ip4ip6_tnl_xmit(struct sk_buff *skb, struct net_device *dev) | |||
| 962 | dsfield = ipv4_get_dsfield(iph); | 962 | dsfield = ipv4_get_dsfield(iph); |
| 963 | 963 | ||
| 964 | if ((t->parms.flags & IP6_TNL_F_USE_ORIG_TCLASS)) | 964 | if ((t->parms.flags & IP6_TNL_F_USE_ORIG_TCLASS)) |
| 965 | fl.fl6_flowlabel |= ntohl(((__u32)iph->tos << IPV6_TCLASS_SHIFT) | 965 | fl.fl6_flowlabel |= htonl((__u32)iph->tos << IPV6_TCLASS_SHIFT) |
| 966 | & IPV6_TCLASS_MASK); | 966 | & IPV6_TCLASS_MASK; |
| 967 | 967 | ||
| 968 | err = ip6_tnl_xmit2(skb, dev, dsfield, &fl, encap_limit, &mtu); | 968 | err = ip6_tnl_xmit2(skb, dev, dsfield, &fl, encap_limit, &mtu); |
| 969 | if (err != 0) { | 969 | if (err != 0) { |
