Lines Matching refs:tos
298 iph->tos & INET_DSCP_MASK, tunnel->net, in ip_tunnel_bind_dev()
427 &iph->saddr, iph->tos); in ip_tunnel_rcv()
596 u8 tos, ttl; in ip_md_tunnel_xmit() local
606 tos = key->tos; in ip_md_tunnel_xmit()
607 if (tos == 1) { in ip_md_tunnel_xmit()
609 tos = inner_iph->tos; in ip_md_tunnel_xmit()
611 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_md_tunnel_xmit()
615 tos & INET_DSCP_MASK, tunnel->net, 0, skb->mark, in ip_md_tunnel_xmit()
651 tos = ip_tunnel_ecn_encap(tos, inner_iph, skb); in ip_md_tunnel_xmit()
670 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, proto, tos, ttl, in ip_md_tunnel_xmit()
696 u8 tos, ttl; in ip_tunnel_xmit() local
764 tos = tnl_params->tos; in ip_tunnel_xmit()
765 if (tos & 0x1) { in ip_tunnel_xmit()
766 tos &= ~0x1; in ip_tunnel_xmit()
768 tos = inner_iph->tos; in ip_tunnel_xmit()
771 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_tunnel_xmit()
777 tunnel->parms.o_key, tos & INET_DSCP_MASK, in ip_tunnel_xmit()
834 tos = ip_tunnel_ecn_encap(tos, inner_iph, skb); in ip_tunnel_xmit()
859 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl, in ip_tunnel_xmit()
892 t->parms.iph.tos = p->iph.tos; in ip_tunnel_update()