/net/ipv4/ |
D | fib_rules.c | 40 u8 tos; member 116 if (r->tos && (r->tos != fl4->flowi4_tos)) in fib4_rule_match() 145 if (frh->tos & ~IPTOS_TOS_MASK) in fib4_rule_configure() 180 rule4->tos = frh->tos; in fib4_rule_configure() 211 if (frh->tos && (rule4->tos != frh->tos)) in fib4_rule_compare() 235 frh->tos = rule4->tos; in fib4_rule_fill()
|
D | xfrm4_mode_tunnel.c | 81 if (INET_ECN_is_ce(XFRM_MODE_SKB_CB(skb)->tos)) in ipip_ecn_decapsulate() 108 top_iph->tos = 0; in xfrm4_mode_tunnel_output() 110 top_iph->tos = XFRM_MODE_SKB_CB(skb)->tos; in xfrm4_mode_tunnel_output() 111 top_iph->tos = INET_ECN_encapsulate(top_iph->tos, in xfrm4_mode_tunnel_output() 112 XFRM_MODE_SKB_CB(skb)->tos); in xfrm4_mode_tunnel_output() 154 ipv4_copy_dscp(XFRM_MODE_SKB_CB(skb)->tos, ipip_hdr(skb)); in xfrm4_mode_tunnel_input()
|
D | netfilter.c | 42 fl4.flowi4_tos = RT_TOS(iph->tos); in ip_route_me_harder() 88 u_int8_t tos; member 100 rt_info->tos = iph->tos; in nf_ip_saveroute() 115 if (!(iph->tos == rt_info->tos && in nf_ip_reroute()
|
D | ip_tunnel.c | 324 __be32 key, __u8 tos, int oif) in ip_route_output_tunnel() argument 330 fl4->flowi4_tos = tos; in ip_route_output_tunnel() 356 RT_TOS(iph->tos), in ip_tunnel_bind_dev() 466 &iph->saddr, iph->tos); in ip_tunnel_rcv() 496 u8 tos, ttl; in ip_tunnel_xmit() local 555 tos = tnl_params->tos; in ip_tunnel_xmit() 556 if (tos & 0x1) { in ip_tunnel_xmit() 557 tos &= ~0x1; in ip_tunnel_xmit() 559 tos = inner_iph->tos; in ip_tunnel_xmit() 561 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_tunnel_xmit() [all …]
|
D | icmp.c | 352 inet->tos = ip_hdr(skb)->tos; in icmp_reply() 368 fl4.flowi4_tos = RT_TOS(ip_hdr(skb)->tos); in icmp_reply() 386 __be32 saddr, u8 tos, u32 mark, in icmp_route_lookup() argument 400 fl4->flowi4_tos = RT_TOS(tos); in icmp_route_lookup() 443 RT_TOS(tos), rt2->dst.dev); in icmp_route_lookup() 496 u8 tos; in icmp_send() local 591 tos = icmp_pointers[type].error ? ((iph->tos & IPTOS_TOS_MASK) | in icmp_send() 593 iph->tos; in icmp_send() 610 inet_sk(sk)->tos = tos; in icmp_send() 616 rt = icmp_route_lookup(net, &fl4, skb_in, iph, saddr, tos, mark, in icmp_send()
|
D | route.c | 506 int oif, u8 tos, in __build_flow_key() argument 514 tos = RT_CONN_FLAGS(sk); in __build_flow_key() 517 flowi4_init_output(fl4, oif, mark, tos, in __build_flow_key() 530 u8 tos = RT_TOS(iph->tos); in build_skb_flow_key() local 534 __build_flow_key(net, fl4, sk, iph, oif, tos, prot, mark, 0); in build_skb_flow_key() 746 u8 tos = RT_TOS(iph->tos); in ip_do_redirect() local 752 __build_flow_key(net, &fl4, sk, iph, oif, tos, prot, mark, 0); in ip_do_redirect() 967 RT_TOS(iph->tos), protocol, mark, flow_flags); in ipv4_update_pmtu() 1051 RT_TOS(iph->tos), protocol, mark, flow_flags); in ipv4_redirect() 1139 fl4.flowi4_tos = RT_TOS(iph->tos); in ip_rt_get_source() [all …]
|
D | ah4.c | 133 top_iph->tos = iph->tos; in ah_output_done() 183 iph->tos = top_iph->tos; in ah_output() 198 top_iph->tos = 0; in ah_output() 233 top_iph->tos = iph->tos; in ah_output() 352 iph->tos = 0; in ah_input()
|
D | xfrm4_policy.c | 22 int tos, in __xfrm4_dst_lookup() argument 31 fl4->flowi4_tos = tos; in __xfrm4_dst_lookup() 43 static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos, in xfrm4_dst_lookup() argument 50 return __xfrm4_dst_lookup(net, &fl4, tos, saddr, daddr, mark); in xfrm4_dst_lookup() 185 fl4->flowi4_tos = iph->tos; in _decode_session4()
|
D | fib_lookup.h | 32 int dst_len, u8 tos, struct fib_info *fi, 38 u8 tos, u32 prio);
|
D | xfrm4_state.c | 64 XFRM_MODE_SKB_CB(skb)->tos = iph->tos; in xfrm4_extract_header()
|
D | xfrm4_mode_beet.c | 28 iph->tos = XFRM_MODE_SKB_CB(skb)->tos; in xfrm4_beet_make_header()
|
D | ip_fragment.c | 82 static inline u8 ip4_frag_ecn(u8 tos) in ip4_frag_ecn() argument 84 return 1 << (tos & INET_ECN_MASK); in ip4_frag_ecn() 146 qp->ecn = ip4_frag_ecn(arg->iph->tos); in ip4_frag_init() 225 iph->tos, head->dev); in ip_expire() 351 ecn = ip4_frag_ecn(ip_hdr(skb)->tos); in ip_frag_queue() 629 iph->tos |= ecn; in ip_frag_reasm()
|
D | ip_sockglue.c | 78 put_cmsg(msg, SOL_IP, IP_TOS, 1, &ip_hdr(skb)->tos); in ip_cmsg_recv_tos() 583 val |= inet->tos & INET_ECN_MASK; in do_ip_setsockopt() 585 if (inet->tos != val) { in do_ip_setsockopt() 586 inet->tos = val; in do_ip_setsockopt() 1189 val = inet->tos; in do_ip_getsockopt() 1311 int tos = inet->rcv_tos; in do_ip_getsockopt() local 1312 put_cmsg(&msg, SOL_IP, IP_TOS, sizeof(tos), &tos); in do_ip_getsockopt()
|
D | ip_output.c | 142 iph->tos = inet->tos; in ip_build_and_send_pkt() 381 *((__be16 *)iph) = htons((4 << 12) | (5 << 8) | (inet->tos & 0xff)); in ip_queue_xmit() 1330 iph->tos = inet->tos; in __ip_make_skb() 1487 RT_TOS(arg->tos), in ip_send_unicast_reply() 1498 inet_sk(sk)->tos = arg->tos; in ip_send_unicast_reply()
|
D | ip_vti.c | 316 u8 tos; in vti_tunnel_xmit() local 326 tos = old_iph->tos; in vti_tunnel_xmit() 330 be32_to_cpu(tunnel->parms.i_key), RT_TOS(tos), in vti_tunnel_xmit() 398 RT_TOS(iph->tos), RT_SCOPE_UNIVERSE, in vti_tunnel_bind_dev()
|
D | fib_trie.c | 1179 u8 tos = cfg->fc_tos; in fib_table_insert() local 1209 fa = fib_find_alias(fa_head, tos, fi->fib_priority); in fib_table_insert() 1223 if (fa && fa->fa_tos == tos && in fib_table_insert() 1240 if (fa->fa_tos != tos) in fib_table_insert() 1304 new_fa->fa_tos = tos; in fib_table_insert() 1626 u8 tos = cfg->fc_tos; in fib_table_delete() local 1653 fa = fib_find_alias(fa_head, tos, 0); in fib_table_delete() 1658 pr_debug("Deleting %08x/%d tos=%d t=%p\n", key, plen, tos, t); in fib_table_delete() 1665 if (fa->fa_tos != tos) in fib_table_delete()
|
/net/ipv4/netfilter/ |
D | iptable_mangle.c | 44 u_int8_t tos; in ipt_mangle_out() local 59 tos = iph->tos; in ipt_mangle_out() 70 iph->tos != tos) { in ipt_mangle_out()
|
D | ipt_ECN.c | 33 if ((iph->tos & IPT_ECN_IP_MASK) != (einfo->ip_ect & IPT_ECN_IP_MASK)) { in set_ect_ip() 38 oldtos = iph->tos; in set_ect_ip() 39 iph->tos &= ~IPT_ECN_IP_MASK; in set_ect_ip() 40 iph->tos |= (einfo->ip_ect & IPT_ECN_IP_MASK); in set_ect_ip() 41 csum_replace2(&iph->check, htons(oldtos), htons(iph->tos)); in set_ect_ip()
|
/net/ipv6/ |
D | fib6_rules.c | 176 rule6->tclass = frh->tos; in fib6_rule_configure() 194 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare() 215 frh->tos = rule6->tclass; in fib6_rule_fill()
|
D | sit.c | 608 &iph->saddr, iph->tos); in ipip6_rcv() 689 u8 tos = tunnel->parms.iph.tos; in ipip6_tunnel_xmit() local 704 if (tos == 1) in ipip6_tunnel_xmit() 705 tos = ipv6_get_dsfield(iph6); in ipip6_tunnel_xmit() 770 IPPROTO_IPV6, RT_TOS(tos), in ipip6_tunnel_xmit() 860 iph->tos = INET_ECN_encapsulate(tos, ipv6_get_dsfield(iph6)); in ipip6_tunnel_xmit() 895 RT_TOS(iph->tos), in ipip6_tunnel_bind_dev() 930 t->parms.iph.tos = p->iph.tos; in ipip6_tunnel_update() 1264 parms->iph.tos = nla_get_u8(data[IFLA_IPTUN_TOS]); in ipip6_netlink_parms() 1416 nla_put_u8(skb, IFLA_IPTUN_TOS, parm->iph.tos) || in ipip6_fill_info()
|
D | xfrm6_mode_tunnel.c | 55 dsfield = XFRM_MODE_SKB_CB(skb)->tos; in xfrm6_mode_tunnel_output() 56 dsfield = INET_ECN_encapsulate(dsfield, XFRM_MODE_SKB_CB(skb)->tos); in xfrm6_mode_tunnel_output()
|
/net/bridge/netfilter/ |
D | ebt_ip.c | 40 FWINV(info->tos != ih->tos, EBT_IP_TOS)) in ebt_ip_mt()
|
/net/decnet/ |
D | dn_rules.c | 128 if (frh->tos) in dn_fib_rule_configure() 205 frh->tos = 0; in dn_fib_rule_fill()
|
/net/openvswitch/ |
D | flow.c | 149 key->ip.tos = ipv6_get_dsfield(nh); in parse_ipv6hdr() 656 key->ip.tos = nh->tos; in ovs_flow_extract() 1060 swkey->ip.tos = ipv4_key->ipv4_tos; in ovs_flow_from_nlattrs() 1084 swkey->ip.tos = ipv6_key->ipv6_tclass; in ovs_flow_from_nlattrs() 1226 ipv4_key->ipv4_tos = swkey->ip.tos; in ovs_flow_to_nlattrs() 1242 ipv6_key->ipv6_tclass = swkey->ip.tos; in ovs_flow_to_nlattrs()
|
/net/netfilter/ |
D | xt_dscp.c | 62 return ((ip_hdr(skb)->tos & info->tos_mask) == in tos_mt()
|