Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b77f2fa6 authored by Al Viro's avatar Al Viro Committed by David S. Miller
Browse files

[IPV6]: endianness bug in ip6_tunnel

parent 43a41513
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -962,8 +962,8 @@ ip4ip6_tnl_xmit(struct sk_buff *skb, struct net_device *dev)
	dsfield = ipv4_get_dsfield(iph);

	if ((t->parms.flags & IP6_TNL_F_USE_ORIG_TCLASS))
		fl.fl6_flowlabel |= ntohl(((__u32)iph->tos << IPV6_TCLASS_SHIFT)
					  & IPV6_TCLASS_MASK);
		fl.fl6_flowlabel |= htonl((__u32)iph->tos << IPV6_TCLASS_SHIFT)
					  & IPV6_TCLASS_MASK;

	err = ip6_tnl_xmit2(skb, dev, dsfield, &fl, encap_limit, &mtu);
	if (err != 0) {