X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fipv4%2Fip_gre.c;h=cb4a0f4bd5e5654b465ddee4f32a42504711d5d3;hb=3e0e1e9c5a327d4dba8490d83ef55c0564e6e8a7;hp=44e2a3d2359afd99da1324022c221e811d83a0a9;hpb=187f81b3d8d315c35c73ac0d05b15a04a0ac3ce7;p=mv-sheeva.git diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 44e2a3d2359..cb4a0f4bd5e 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c @@ -735,10 +735,10 @@ static int ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev) } tos = tiph->tos; - if (tos&1) { + if (tos == 1) { + tos = 0; if (skb->protocol == htons(ETH_P_IP)) tos = old_iph->tos; - tos &= ~1; } {