/net/ipv4/ |
D | xfrm4_mode_tunnel.c | 22 if (INET_ECN_is_ce(XFRM_MODE_SKB_CB(skb)->tos)) in ipip_ecn_decapsulate() 52 top_iph->tos = 0; in xfrm4_mode_tunnel_output() 54 top_iph->tos = XFRM_MODE_SKB_CB(skb)->tos; in xfrm4_mode_tunnel_output() 55 top_iph->tos = INET_ECN_encapsulate(top_iph->tos, in xfrm4_mode_tunnel_output() 56 XFRM_MODE_SKB_CB(skb)->tos); in xfrm4_mode_tunnel_output() 89 ipv4_copy_dscp(XFRM_MODE_SKB_CB(skb)->tos, ipip_hdr(skb)); in xfrm4_mode_tunnel_input()
|
D | fib_rules.c | 40 u8 tos; member 54 if (r->dst_len || r->src_len || r->tos) in fib4_rule_matchall() 182 if (r->tos && (r->tos != fl4->flowi4_tos)) in fib4_rule_match() 211 if (frh->tos & ~IPTOS_TOS_MASK) in fib4_rule_configure() 251 rule4->tos = frh->tos; in fib4_rule_configure() 290 if (frh->tos && (rule4->tos != frh->tos)) in fib4_rule_compare() 314 frh->tos = rule4->tos; in fib4_rule_fill()
|
D | ip_tunnel.c | 297 __be32 key, __u8 tos, int oif, in init_tunnel_flow() argument 304 fl4->flowi4_tos = tos; in init_tunnel_flow() 328 RT_TOS(iph->tos), tunnel->parms.link, in ip_tunnel_bind_dev() 420 &iph->saddr, iph->tos); in ip_tunnel_rcv() 569 u8 tos, ttl; in ip_md_tunnel_xmit() local 578 tos = key->tos; in ip_md_tunnel_xmit() 579 if (tos == 1) { in ip_md_tunnel_xmit() 581 tos = inner_iph->tos; in ip_md_tunnel_xmit() 583 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_md_tunnel_xmit() 586 RT_TOS(tos), tunnel->parms.link, tunnel->fwmark); in ip_md_tunnel_xmit() [all …]
|
D | netfilter.c | 43 fl4.flowi4_tos = RT_TOS(iph->tos); in ip_route_me_harder() 91 u_int8_t tos; member 103 rt_info->tos = iph->tos; in nf_ip_saveroute() 118 if (!(iph->tos == rt_info->tos && in nf_ip_reroute()
|
D | icmp.c | 433 inet->tos = ip_hdr(skb)->tos; in icmp_reply() 440 ipc.tos = -1; in icmp_reply() 452 fl4.flowi4_tos = RT_TOS(ip_hdr(skb)->tos); in icmp_reply() 472 __be32 saddr, u8 tos, u32 mark, in icmp_route_lookup() argument 486 fl4->flowi4_tos = RT_TOS(tos); in icmp_route_lookup() 533 RT_TOS(tos), rt2->dst.dev); in icmp_route_lookup() 587 u8 tos; in __icmp_send() local 694 tos = icmp_pointers[type].error ? ((iph->tos & IPTOS_TOS_MASK) | in __icmp_send() 696 iph->tos; in __icmp_send() 713 inet_sk(sk)->tos = tos; in __icmp_send() [all …]
|
D | ip_tunnel_core.c | 61 __u8 tos, __u8 ttl, __be16 df, bool xnet) in iptunnel_xmit() argument 85 iph->tos = tos; in iptunnel_xmit() 270 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP_TOS]); in ip_tun_build_state() 292 nla_put_u8(skb, LWTUNNEL_IP_TOS, tun_info->key.tos) || in ip_tun_fill_encap_info() 369 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP6_TC]); in ip6_tun_build_state() 391 nla_put_u8(skb, LWTUNNEL_IP6_TC, tun_info->key.tos) || in ip6_tun_fill_encap_info()
|
D | route.c | 540 int oif, u8 tos, in __build_flow_key() argument 548 tos = RT_CONN_FLAGS(sk); in __build_flow_key() 551 flowi4_init_output(fl4, oif, mark, tos, in __build_flow_key() 564 u8 tos = RT_TOS(iph->tos); in build_skb_flow_key() local 568 __build_flow_key(net, fl4, sk, iph, oif, tos, prot, mark, 0); in build_skb_flow_key() 836 u8 tos = RT_TOS(iph->tos); in ip_do_redirect() local 842 __build_flow_key(net, &fl4, sk, iph, oif, tos, prot, mark, 0); in ip_do_redirect() 1068 RT_TOS(iph->tos), protocol, mark, flow_flags); in ipv4_update_pmtu() 1157 RT_TOS(iph->tos), protocol, mark, flow_flags); in ipv4_redirect() 1273 fl4.flowi4_tos = RT_TOS(iph->tos); in ip_rt_get_source() [all …]
|
D | ah4.c | 134 top_iph->tos = iph->tos; in ah_output_done() 193 iph->tos = top_iph->tos; in ah_output() 208 top_iph->tos = 0; in ah_output() 250 top_iph->tos = iph->tos; in ah_output() 386 iph->tos = 0; in ah_input()
|
D | xfrm4_policy.c | 22 int tos, int oif, in __xfrm4_dst_lookup() argument 31 fl4->flowi4_tos = tos; in __xfrm4_dst_lookup() 46 static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos, int oif, in xfrm4_dst_lookup() argument 53 return __xfrm4_dst_lookup(net, &fl4, tos, oif, saddr, daddr, mark); in xfrm4_dst_lookup() 129 fl4->flowi4_tos = iph->tos; in _decode_session4()
|
D | ip_output.c | 157 iph->tos = inet->tos; in ip_build_and_send_pkt() 481 *((__be16 *)iph) = htons((4 << 12) | (5 << 8) | (inet->tos & 0xff)); in ip_queue_xmit() 1139 cork->tos = ipc->tos; in ip_setup_cork() 1388 iph->tos = (cork->tos != -1) ? cork->tos : inet->tos; in __ip_make_skb() 1400 skb->priority = (cork->tos != -1) ? cork->priority: sk->sk_priority; in __ip_make_skb() 1539 ipc.tos = -1; in ip_send_unicast_reply() 1554 RT_TOS(arg->tos), in ip_send_unicast_reply() 1565 inet_sk(sk)->tos = arg->tos; in ip_send_unicast_reply()
|
D | fib_trie.c | 91 u8 tos, u8 type, u32 tb_id) in call_fib_entry_notifier() argument 97 .tos = tos, in call_fib_entry_notifier() 107 u8 tos, u8 type, u32 tb_id) in call_fib_entry_notifiers() argument 113 .tos = tos, in call_fib_entry_notifiers() 986 u8 tos, u32 prio, u32 tb_id) in fib_find_alias() argument 1002 if (fa->fa_tos > tos) in fib_find_alias() 1004 if (fa->fa_info->fib_priority >= prio || fa->fa_tos < tos) in fib_find_alias() 1131 u8 tos = cfg->fc_tos; in fib_table_insert() local 1149 fa = l ? fib_find_alias(&l->leaf, slen, tos, fi->fib_priority, in fib_table_insert() 1161 if (fa && fa->fa_tos == tos && in fib_table_insert() [all …]
|
D | xfrm4_state.c | 65 XFRM_MODE_SKB_CB(skb)->tos = iph->tos; in xfrm4_extract_header()
|
D | ip_sockglue.c | 71 put_cmsg(msg, SOL_IP, IP_TOS, 1, &ip_hdr(skb)->tos); in ip_cmsg_recv_tos() 314 ipc->tos = val; in ip_cmsg_send() 315 ipc->priority = rt_tos2priority(ipc->tos); in ip_cmsg_send() 749 val |= inet->tos & INET_ECN_MASK; in do_ip_setsockopt() 751 if (inet->tos != val) { in do_ip_setsockopt() 752 inet->tos = val; in do_ip_setsockopt() 1383 val = inet->tos; in do_ip_getsockopt() 1507 int tos = inet->rcv_tos; in do_ip_getsockopt() local 1508 put_cmsg(&msg, SOL_IP, IP_TOS, sizeof(tos), &tos); in do_ip_getsockopt()
|
D | xfrm4_mode_beet.c | 28 iph->tos = XFRM_MODE_SKB_CB(skb)->tos; in xfrm4_beet_make_header()
|
D | ip_fragment.c | 71 static u8 ip4_frag_ecn(u8 tos) in ip4_frag_ecn() argument 73 return 1 << (tos & INET_ECN_MASK); in ip4_frag_ecn() 175 iph->tos, head->dev); in ip_expire() 296 ecn = ip4_frag_ecn(ip_hdr(skb)->tos); in ip_frag_queue() 435 iph->tos |= ecn; in ip_frag_reasm()
|
D | ip_gre.c | 459 fl->flowi4_tos = RT_TOS(key->tos); in gre_get_rt() 547 key->tos, key->ttl, df, false); in gre_fb_xmit() 608 key->tos, key->ttl, df, false); in erspan_fb_xmit() 679 static inline u8 tos_to_cos(u8 tos) in tos_to_cos() argument 683 dscp = tos >> 2; in tos_to_cos() 719 ((tos_to_cos(iphdr->tos) << COS_OFFSET) & COS_MASK) | in erspan_build_header() 891 RT_TOS(t->parms.iph.tos), in ipgre_open() 1157 parms->iph.tos = nla_get_u8(data[IFLA_GRE_TOS]); in ipgre_netlink_parms() 1390 nla_put_u8(skb, IFLA_GRE_TOS, p->iph.tos) || in ipgre_fill_info()
|
D | udp_tunnel.c | 164 __be32 src, __be32 dst, __u8 tos, __u8 ttl, in udp_tunnel_xmit_skb() argument 182 iptunnel_xmit(sk, rt, skb, src, dst, IPPROTO_UDP, tos, ttl, df, xnet); in udp_tunnel_xmit_skb()
|
/net/ipv4/netfilter/ |
D | nft_chain_route_ipv4.c | 32 u_int8_t tos; in nf_route_table_hook() local 47 tos = iph->tos; in nf_route_table_hook() 56 iph->tos != tos) { in nf_route_table_hook()
|
D | iptable_mangle.c | 47 u_int8_t tos; in ipt_mangle_out() local 62 tos = iph->tos; in ipt_mangle_out() 72 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 | xfrm6_mode_tunnel.c | 25 if (INET_ECN_is_ce(XFRM_MODE_SKB_CB(skb)->tos)) in ipip6_ecn_decapsulate() 57 dsfield = XFRM_MODE_SKB_CB(skb)->tos; in xfrm6_mode_tunnel_output() 58 dsfield = INET_ECN_encapsulate(dsfield, XFRM_MODE_SKB_CB(skb)->tos); in xfrm6_mode_tunnel_output()
|
D | fib6_rules.c | 259 rule6->tclass = frh->tos; in fib6_rule_configure() 278 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare() 299 frh->tos = rule6->tclass; in fib6_rule_fill()
|
D | sit.c | 672 &iph->saddr, iph->tos); in ipip6_rcv() 815 u8 tos = tunnel->parms.iph.tos; in ipip6_tunnel_xmit() local 829 if (tos == 1) in ipip6_tunnel_xmit() 830 tos = ipv6_get_dsfield(iph6); in ipip6_tunnel_xmit() 893 RT_TOS(tos), RT_SCOPE_UNIVERSE, IPPROTO_IPV6, in ipip6_tunnel_xmit() 976 tos = INET_ECN_encapsulate(tos, ipv6_get_dsfield(iph6)); in ipip6_tunnel_xmit() 985 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl, in ipip6_tunnel_xmit() 1060 RT_TOS(iph->tos), in ipip6_tunnel_bind_dev() 1097 t->parms.iph.tos = p->iph.tos; in ipip6_tunnel_update() 1463 parms->iph.tos = nla_get_u8(data[IFLA_IPTUN_TOS]); in ipip6_netlink_parms() [all …]
|
/net/bridge/netfilter/ |
D | ebt_ip.c | 40 NF_INVF(info, EBT_IP_TOS, info->tos != ih->tos)) in ebt_ip_mt()
|
/net/decnet/ |
D | dn_rules.c | 129 if (frh->tos) in dn_fib_rule_configure() 206 frh->tos = 0; in dn_fib_rule_fill()
|