Lines Matching refs:tos
297 iph->tos & INET_DSCP_MASK, dev_net(dev), in ip_tunnel_bind_dev()
426 &iph->saddr, iph->tos); in ip_tunnel_rcv()
595 u8 tos, ttl; in ip_md_tunnel_xmit() local
605 tos = key->tos; in ip_md_tunnel_xmit()
606 if (tos == 1) { in ip_md_tunnel_xmit()
608 tos = inner_iph->tos; in ip_md_tunnel_xmit()
610 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_md_tunnel_xmit()
614 tos & INET_DSCP_MASK, dev_net(dev), 0, skb->mark, in ip_md_tunnel_xmit()
650 tos = ip_tunnel_ecn_encap(tos, inner_iph, skb); in ip_md_tunnel_xmit()
669 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, proto, tos, ttl, in ip_md_tunnel_xmit()
695 u8 tos, ttl; in ip_tunnel_xmit() local
763 tos = tnl_params->tos; in ip_tunnel_xmit()
764 if (tos & 0x1) { in ip_tunnel_xmit()
765 tos &= ~0x1; in ip_tunnel_xmit()
767 tos = inner_iph->tos; in ip_tunnel_xmit()
770 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_tunnel_xmit()
776 tunnel->parms.o_key, tos & INET_DSCP_MASK, in ip_tunnel_xmit()
833 tos = ip_tunnel_ecn_encap(tos, inner_iph, skb); in ip_tunnel_xmit()
858 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl, in ip_tunnel_xmit()
891 t->parms.iph.tos = p->iph.tos; in ip_tunnel_update()