Lines Matching refs:tos
540 if (INET_ECN_is_ce(iph->tos)) { in ipgre_ecn_decapsulate()
550 ipgre_ecn_encapsulate(u8 tos, const struct iphdr *old_iph, struct sk_buff *skb) in ipgre_ecn_encapsulate() argument
554 inner = old_iph->tos; in ipgre_ecn_encapsulate()
557 return INET_ECN_encapsulate(tos, inner); in ipgre_ecn_encapsulate()
704 u8 tos; in ipgre_tunnel_xmit() local
772 tos = tiph->tos; in ipgre_tunnel_xmit()
773 if (tos == 1) { in ipgre_tunnel_xmit()
774 tos = 0; in ipgre_tunnel_xmit()
776 tos = old_iph->tos; in ipgre_tunnel_xmit()
778 tos = ipv6_get_dsfield((const struct ipv6hdr *)old_iph); in ipgre_tunnel_xmit()
782 tunnel->parms.o_key, RT_TOS(tos), in ipgre_tunnel_xmit()
883 iph->tos = ipgre_ecn_encapsulate(tos, old_iph, skb); in ipgre_tunnel_xmit()
956 RT_TOS(iph->tos), in ipgre_tunnel_bind_dev()
1084 t->parms.iph.tos = p.iph.tos; in ipgre_tunnel_ioctl()
1217 RT_TOS(t->parms.iph.tos), in ipgre_open()
1479 parms->iph.tos = nla_get_u8(data[IFLA_GRE_TOS]); in ipgre_netlink_parms()
1612 t->parms.iph.tos = p.iph.tos; in ipgre_changelink()
1665 NLA_PUT_U8(skb, IFLA_GRE_TOS, p->iph.tos); in ipgre_fill_info()