Home
last modified time | relevance | path

Searched refs:tos (Results 1 – 25 of 84) sorted by relevance

1234

/net/ipv4/
Dfib_rules.c37 u8 tos; member
51 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()
227 if (frh->tos & ~IPTOS_TOS_MASK) { in fib4_rule_configure()
272 rule4->tos = frh->tos; in fib4_rule_configure()
315 if (frh->tos && (rule4->tos != frh->tos)) in fib4_rule_compare()
339 frh->tos = rule4->tos; in fib4_rule_fill()
Dip_tunnel.c297 RT_TOS(iph->tos), tunnel->parms.link, in ip_tunnel_bind_dev()
400 &iph->saddr, iph->tos); in ip_tunnel_rcv()
575 u8 tos, ttl; in ip_md_tunnel_xmit() local
585 tos = key->tos; in ip_md_tunnel_xmit()
586 if (tos == 1) { in ip_md_tunnel_xmit()
588 tos = inner_iph->tos; in ip_md_tunnel_xmit()
590 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_md_tunnel_xmit()
593 tunnel_id_to_key32(key->tun_id), RT_TOS(tos), in ip_md_tunnel_xmit()
625 tos = ip_tunnel_ecn_encap(tos, inner_iph, skb); in ip_md_tunnel_xmit()
644 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, proto, tos, ttl, in ip_md_tunnel_xmit()
[all …]
Dicmp.c434 inet->tos = ip_hdr(skb)->tos; in icmp_reply()
449 fl4.flowi4_tos = RT_TOS(ip_hdr(skb)->tos); in icmp_reply()
486 __be32 saddr, u8 tos, u32 mark, in icmp_route_lookup() argument
501 fl4->flowi4_tos = RT_TOS(tos); in icmp_route_lookup()
549 RT_TOS(tos), rt2->dst.dev); in icmp_route_lookup()
603 u8 tos; in __icmp_send() local
716 tos = icmp_pointers[type].error ? ((iph->tos & IPTOS_TOS_MASK) | in __icmp_send()
718 iph->tos; in __icmp_send()
735 inet_sk(sk)->tos = tos; in __icmp_send()
741 rt = icmp_route_lookup(net, &fl4, skb_in, iph, saddr, tos, mark, in __icmp_send()
Dip_tunnel_core.c48 __u8 tos, __u8 ttl, __be16 df, bool xnet) in iptunnel_xmit() argument
72 iph->tos = tos; in iptunnel_xmit()
266 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP_TOS]); in ip_tun_build_state()
297 nla_put_u8(skb, LWTUNNEL_IP_TOS, tun_info->key.tos) || in ip_tun_fill_encap_info()
375 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP6_TC]); in ip6_tun_build_state()
397 nla_put_u8(skb, LWTUNNEL_IP6_TC, tun_info->key.tos) || in ip6_tun_fill_encap_info()
Dah4.c135 top_iph->tos = iph->tos; in ah_output_done()
194 iph->tos = top_iph->tos; in ah_output()
209 top_iph->tos = 0; in ah_output()
251 top_iph->tos = iph->tos; in ah_output()
387 iph->tos = 0; in ah_input()
Droute.c535 int oif, u8 tos, in __build_flow_key() argument
543 tos = RT_CONN_FLAGS(sk); in __build_flow_key()
546 flowi4_init_output(fl4, oif, mark, tos, in __build_flow_key()
559 u8 tos = RT_TOS(iph->tos); in build_skb_flow_key() local
563 __build_flow_key(net, fl4, sk, iph, oif, tos, prot, mark, 0); in build_skb_flow_key()
849 u8 tos = RT_TOS(iph->tos); in ip_do_redirect() local
855 __build_flow_key(net, &fl4, sk, iph, oif, tos, prot, mark, 0); in ip_do_redirect()
1091 RT_TOS(iph->tos), protocol, mark, 0); in ipv4_update_pmtu()
1180 RT_TOS(iph->tos), protocol, 0, 0); in ipv4_redirect()
1294 .flowi4_tos = RT_TOS(iph->tos), in ip_rt_get_source()
[all …]
Dxfrm4_policy.c21 int tos, int oif, in __xfrm4_dst_lookup() argument
30 fl4->flowi4_tos = tos; in __xfrm4_dst_lookup()
45 static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos, int oif, in xfrm4_dst_lookup() argument
52 return __xfrm4_dst_lookup(net, &fl4, tos, oif, saddr, daddr, mark); in xfrm4_dst_lookup()
Dxfrm4_state.c25 XFRM_MODE_SKB_CB(skb)->tos = iph->tos; in xfrm4_extract_header()
Dip_output.c159 iph->tos = inet->tos; in ip_build_and_send_pkt()
463 __u8 tos) in __ip_queue_xmit() argument
502 RT_CONN_FLAGS_TOS(sk, tos), in __ip_queue_xmit()
518 *((__be16 *)iph) = htons((4 << 12) | (5 << 8) | (tos & 0xff)); in __ip_queue_xmit()
1288 cork->tos = ipc->tos; in ip_setup_cork()
1540 iph->tos = (cork->tos != -1) ? cork->tos : inet->tos; in __ip_make_skb()
1552 skb->priority = (cork->tos != -1) ? cork->priority: sk->sk_priority; in __ip_make_skb()
1714 RT_TOS(arg->tos), in ip_send_unicast_reply()
1725 inet_sk(sk)->tos = arg->tos & ~INET_ECN_MASK; in ip_send_unicast_reply()
Dip_sockglue.c73 put_cmsg(msg, SOL_IP, IP_TOS, 1, &ip_hdr(skb)->tos); in ip_cmsg_recv_tos()
316 ipc->tos = val; in ip_cmsg_send()
317 ipc->priority = rt_tos2priority(ipc->tos); in ip_cmsg_send()
755 val |= inet->tos & INET_ECN_MASK; in do_ip_setsockopt()
757 if (inet->tos != val) { in do_ip_setsockopt()
758 inet->tos = val; in do_ip_setsockopt()
1395 val = inet->tos; in do_ip_getsockopt()
1519 int tos = inet->rcv_tos; in do_ip_getsockopt() local
1520 put_cmsg(&msg, SOL_IP, IP_TOS, sizeof(tos), &tos); in do_ip_getsockopt()
Dip_fragment.c71 static u8 ip4_frag_ecn(u8 tos) in ip4_frag_ecn() argument
73 return 1 << (tos & INET_ECN_MASK); in ip4_frag_ecn()
178 iph->tos, head->dev); in ip_expire()
293 ecn = ip4_frag_ecn(ip_hdr(skb)->tos); in ip_frag_queue()
438 iph->tos |= ecn; in ip_frag_reasm()
Dfib_trie.c85 .tos = fa->fa_tos, in call_fib_entry_notifier()
102 .tos = fa->fa_tos, in call_fib_entry_notifiers()
983 u8 tos, u32 prio, u32 tb_id) in fib_find_alias() argument
999 if (fa->fa_tos > tos) in fib_find_alias()
1001 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()
1181 (fa->fa_tos != tos)) in fib_table_insert()
1263 new_fa->fa_tos = tos; in fib_table_insert()
[all …]
/net/ipv4/netfilter/
Dipt_ECN.c30 if ((iph->tos & IPT_ECN_IP_MASK) != (einfo->ip_ect & IPT_ECN_IP_MASK)) { in set_ect_ip()
35 oldtos = iph->tos; in set_ect_ip()
36 iph->tos &= ~IPT_ECN_IP_MASK; in set_ect_ip()
37 iph->tos |= (einfo->ip_ect & IPT_ECN_IP_MASK); in set_ect_ip()
38 csum_replace2(&iph->check, htons(oldtos), htons(iph->tos)); in set_ect_ip()
Diptable_mangle.c44 u_int8_t tos; in ipt_mangle_out() local
54 tos = iph->tos; in ipt_mangle_out()
64 iph->tos != tos) { in ipt_mangle_out()
/net/netfilter/
Dnft_chain_route.c26 u8 tos; in nf_route_table_hook4() local
35 tos = iph->tos; in nf_route_table_hook4()
44 iph->tos != tos) { in nf_route_table_hook4()
/net/xfrm/
Dxfrm_inout.h19 ipv6_change_dsfield(iph, 0, XFRM_MODE_SKB_CB(skb)->tos); in xfrm6_beet_make_header()
31 iph->tos = XFRM_MODE_SKB_CB(skb)->tos; in xfrm4_beet_make_header()
Dxfrm_output.c213 top_iph->tos = 0; in xfrm4_tunnel_encap_add()
215 top_iph->tos = XFRM_MODE_SKB_CB(skb)->tos; in xfrm4_tunnel_encap_add()
216 top_iph->tos = INET_ECN_encapsulate(top_iph->tos, in xfrm4_tunnel_encap_add()
217 XFRM_MODE_SKB_CB(skb)->tos); in xfrm4_tunnel_encap_add()
260 dsfield = XFRM_MODE_SKB_CB(skb)->tos; in xfrm6_tunnel_encap_add()
261 dsfield = INET_ECN_encapsulate(dsfield, XFRM_MODE_SKB_CB(skb)->tos); in xfrm6_tunnel_encap_add()
/net/rds/
Dconnection.c87 u8 tos, int dev_if) in rds_conn_lookup() argument
95 conn->c_tos == tos && in rds_conn_lookup()
164 gfp_t gfp, u8 tos, in __rds_conn_create() argument
176 conn = rds_conn_lookup(net, head, laddr, faddr, trans, tos, dev_if); in __rds_conn_create()
210 conn->c_tos = tos; in __rds_conn_create()
315 tos, dev_if); in __rds_conn_create()
350 struct rds_transport *trans, u8 tos, in rds_conn_create() argument
353 return __rds_conn_create(net, laddr, faddr, trans, gfp, tos, 0, dev_if); in rds_conn_create()
361 u8 tos, gfp_t gfp, int dev_if) in rds_conn_create_outgoing() argument
363 return __rds_conn_create(net, laddr, faddr, trans, gfp, tos, 1, dev_if); in rds_conn_create_outgoing()
[all …]
Dib.c305 iinfo->tos = conn->c_tos; in rds_ib_conn_info_visitor()
342 iinfo6->tos = conn->c_tos; in rds6_ib_conn_info_visitor()
524 static u8 rds_ib_get_tos_map(u8 tos) in rds_ib_get_tos_map() argument
530 return tos; in rds_ib_get_tos_map()
Drdma_transport.c47 #define TOS_TO_SL(tos) ((tos) & 0xF) argument
Daf_rds.c258 rds_tos_t utos, tos = 0; in rds_ioctl() local
267 tos = rs->rs_transport->get_tos_map(utos); in rds_ioctl()
276 rs->rs_tos = tos; in rds_ioctl()
281 tos = rs->rs_tos; in rds_ioctl()
283 if (put_user(tos, (rds_tos_t __user *)arg)) in rds_ioctl()
/net/sched/
Dact_tunnel_key.c230 u8 tos, ttl; in tunnel_key_init() local
290 tos = 0; in tunnel_key_init()
292 tos = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_TOS]); in tunnel_key_init()
305 metadata = __ip_tun_set_dst(saddr, daddr, tos, ttl, in tunnel_key_init()
316 metadata = __ipv6_tun_set_dst(&saddr, &daddr, tos, ttl, dst_port, in tunnel_key_init()
549 if (key->tos && nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_TOS, key->tos)) in tunnel_key_dump()
/net/ipv6/
Dsit.c672 &iph->saddr, iph->tos); in ipip6_rcv()
818 u8 tos = tunnel->parms.iph.tos; in ipip6_tunnel_xmit() local
832 if (tos == 1) in ipip6_tunnel_xmit()
833 tos = ipv6_get_dsfield(iph6); in ipip6_tunnel_xmit()
896 RT_TOS(tos), RT_SCOPE_UNIVERSE, IPPROTO_IPV6, in ipip6_tunnel_xmit()
984 tos = INET_ECN_encapsulate(tos, ipv6_get_dsfield(iph6)); in ipip6_tunnel_xmit()
993 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl, in ipip6_tunnel_xmit()
1072 RT_TOS(iph->tos), in ipip6_tunnel_bind_dev()
1111 t->parms.iph.tos = p->iph.tos; in ipip6_tunnel_update()
1475 parms->iph.tos = nla_get_u8(data[IFLA_IPTUN_TOS]); in ipip6_netlink_parms()
[all …]
Dfib6_rules.c367 rule6->tclass = frh->tos; in fib6_rule_configure()
400 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare()
421 frh->tos = rule6->tclass; in fib6_rule_fill()
/net/bridge/netfilter/
Debt_ip.c50 NF_INVF(info, EBT_IP_TOS, info->tos != ih->tos)) in ebt_ip_mt()

1234