Lines Matching refs:tos
297 RT_TOS(iph->tos), dev_net(dev), in ip_tunnel_bind_dev()
399 &iph->saddr, iph->tos); in ip_tunnel_rcv()
554 u8 tos, ttl; in ip_md_tunnel_xmit() local
564 tos = key->tos; in ip_md_tunnel_xmit()
565 if (tos == 1) { in ip_md_tunnel_xmit()
567 tos = inner_iph->tos; in ip_md_tunnel_xmit()
569 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_md_tunnel_xmit()
572 tunnel_id_to_key32(key->tun_id), RT_TOS(tos), in ip_md_tunnel_xmit()
605 tos = ip_tunnel_ecn_encap(tos, inner_iph, skb); in ip_md_tunnel_xmit()
624 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, proto, tos, ttl, in ip_md_tunnel_xmit()
650 u8 tos, ttl; in ip_tunnel_xmit() local
718 tos = tnl_params->tos; in ip_tunnel_xmit()
719 if (tos & 0x1) { in ip_tunnel_xmit()
720 tos &= ~0x1; in ip_tunnel_xmit()
722 tos = inner_iph->tos; in ip_tunnel_xmit()
725 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_tunnel_xmit()
731 tunnel->parms.o_key, RT_TOS(tos), in ip_tunnel_xmit()
788 tos = ip_tunnel_ecn_encap(tos, inner_iph, skb); in ip_tunnel_xmit()
813 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl, in ip_tunnel_xmit()
846 t->parms.iph.tos = p->iph.tos; in ip_tunnel_update()