Lines Matching refs:tos
297 RT_TOS(iph->tos), dev_net(dev), in ip_tunnel_bind_dev()
413 &iph->saddr, iph->tos); in ip_tunnel_rcv()
568 u8 tos, ttl; in ip_md_tunnel_xmit() local
578 tos = key->tos; in ip_md_tunnel_xmit()
579 if (tos == 1) { in ip_md_tunnel_xmit()
581 tos = inner_iph->tos; in ip_md_tunnel_xmit()
583 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_md_tunnel_xmit()
586 tunnel_id_to_key32(key->tun_id), RT_TOS(tos), in ip_md_tunnel_xmit()
623 tos = ip_tunnel_ecn_encap(tos, inner_iph, skb); in ip_md_tunnel_xmit()
642 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, proto, tos, ttl, in ip_md_tunnel_xmit()
668 u8 tos, ttl; in ip_tunnel_xmit() local
736 tos = tnl_params->tos; in ip_tunnel_xmit()
737 if (tos & 0x1) { in ip_tunnel_xmit()
738 tos &= ~0x1; in ip_tunnel_xmit()
740 tos = inner_iph->tos; in ip_tunnel_xmit()
743 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_tunnel_xmit()
749 tunnel->parms.o_key, RT_TOS(tos), in ip_tunnel_xmit()
806 tos = ip_tunnel_ecn_encap(tos, inner_iph, skb); in ip_tunnel_xmit()
831 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl, in ip_tunnel_xmit()
864 t->parms.iph.tos = p->iph.tos; in ip_tunnel_update()