Home
last modified time | relevance | path

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

12

/include/net/
Ddsfield.h18 return iph->tos; in ipv4_get_dsfield()
34 dsfield = (iph->tos & mask) | value; in ipv4_change_dsfield()
35 check += iph->tos; in ipv4_change_dsfield()
40 iph->tos = dsfield; in ipv4_change_dsfield()
Droute.h43 #define RT_CONN_FLAGS(sk) (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE))
44 #define RT_CONN_FLAGS_TOS(sk,tos) (RT_TOS(tos) | sock_flag(sk, SOCK_LOCALROUTE)) argument
146 __be32 saddr, u8 tos, int oif) in ip_route_output() argument
150 .flowi4_tos = tos, in ip_route_output()
161 __u8 proto, __u8 tos, int oif) in ip_route_output_ports() argument
163 flowi4_init_output(fl4, oif, sk ? sk->sk_mark : 0, tos, in ip_route_output_ports()
174 __be32 gre_key, __u8 tos, int oif) in ip_route_output_gre() argument
180 fl4->flowi4_tos = tos; in ip_route_output_gre()
186 u8 tos, struct net_device *dev,
189 u8 tos, struct net_device *devin);
[all …]
Dinet_ecn.h56 inet_sk(sk)->tos |= INET_ECN_ECT_0; in INET_ECN_xmit()
63 inet_sk(sk)->tos &= ~INET_ECN_MASK; in INET_ECN_dontxmit()
79 u32 ecn = (iph->tos + 1) & INET_ECN_MASK; in IP_ECN_set_ce()
101 iph->tos |= INET_ECN_CE; in IP_ECN_set_ce()
107 if ((iph->tos & INET_ECN_MASK) != INET_ECN_ECT_0) in IP_ECN_set_ect1()
111 iph->tos ^= INET_ECN_MASK; in IP_ECN_set_ect1()
117 iph->tos &= ~INET_ECN_MASK; in IP_ECN_clear()
276 inner = ip_hdr(skb)->tos; in IP_ECN_decapsulate()
285 return INET_ECN_decapsulate(skb, oiph->tos, inner); in IP_ECN_decapsulate()
295 inner = ip_hdr(skb)->tos; in IP6_ECN_decapsulate()
Derspan.h161 static inline u8 tos_to_cos(u8 tos) in tos_to_cos() argument
165 dscp = tos >> 2; in tos_to_cos()
182 u8 tos; in erspan_build_header() local
185 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header()
206 ershdr->cos = tos_to_cos(tos); in erspan_build_header()
279 u8 tos; in erspan_build_header_v2() local
281 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header_v2()
300 ershdr->cos = tos_to_cos(tos); in erspan_build_header_v2()
Ddst_metadata.h157 __u8 tos, __u8 ttl, in __ip_tun_set_dst() argument
170 saddr, daddr, tos, ttl, in __ip_tun_set_dst()
182 return __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl, in ip_tun_rx_dst()
188 __u8 tos, __u8 ttl, in __ipv6_tun_set_dst() argument
212 info->key.tos = tos; in __ipv6_tun_set_dst()
Dip_tunnels.h52 u8 tos; /* TOS for IPv4, TC for IPv6 */ member
172 u8 tos, u8 ttl, __be32 label, in ip_tunnel_key_init() argument
181 key->tos = tos; in ip_tunnel_key_init()
243 __be32 key, __u8 tos, int oif, in ip_tunnel_init_flow() argument
250 fl4->flowi4_tos = tos; in ip_tunnel_init_flow()
383 return iph->tos; in ip_tunnel_get_dsfield()
404 static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph, in ip_tunnel_ecn_encap() argument
409 return INET_ECN_encapsulate(tos, inner); in ip_tunnel_ecn_encap()
423 u8 tos, u8 ttl, __be16 df, bool xnet);
Dflow.h97 __u32 mark, __u8 tos, __u8 scope, in flowi4_init_output() argument
106 fl4->flowi4_tos = tos; in flowi4_init_output()
121 static inline void flowi4_update_output(struct flowi4 *fl4, int oif, __u8 tos, in flowi4_update_output() argument
125 fl4->flowi4_tos = tos; in flowi4_update_output()
Dip.h81 __s16 tos; member
88 *ipcm = (struct ipcm_cookie) { .tos = -1 }; in ipcm_init()
159 struct ip_options_rcu *opt, u8 tos);
214 __u8 tos);
249 return (ipc->tos != -1) ? RT_TOS(ipc->tos) : RT_TOS(inet->tos); in get_rttos()
254 return (ipc->tos != -1) ? RT_CONN_FLAGS_TOS(sk, ipc->tos) : RT_CONN_FLAGS(sk); in get_rtconn_flags()
270 u8 tos; member
Dinet_sock.h172 __s16 tos; member
227 __u8 tos; member
Dip_fib.h212 u8 tos; member
225 u8 tos; member
439 u8 tos, int oif, struct net_device *dev,
Dflow_dissector.h220 __u8 tos; member
Dudp_tunnel.h151 __be32 src, __be32 dst, __u8 tos, __u8 ttl,
/include/uapi/linux/
Din_route.h31 #define RT_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument
Dip.h25 #define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument
32 #define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK) argument
97 __u8 tos; member
Drds.h160 __u8 tos; member
183 __u8 tos; member
194 __u8 tos; member
227 __u8 tos; member
254 __u8 tos; member
270 __u8 tos; member
Dfib_rules.h23 __u8 tos; member
Dethtool.h865 __u8 tos; member
881 __u8 tos; member
899 __u8 tos; member
/include/trace/events/
Dfib6.h25 __field( __u8, tos )
45 __entry->tos = ip6_tclass(flp->flowlabel);
85 __entry->tos, __entry->scope, __entry->flags,
Dfib.h26 __field( __u8, tos )
48 __entry->tos = flp->flowi4_tos;
97 __entry->tos, __entry->scope, __entry->flags,
/include/uapi/linux/netfilter_bridge/
Debt_ip.h39 __u8 tos; member
/include/linux/
Dnetfilter_ipv4.h15 u_int8_t tos; member
/include/rdma/
Diw_cm.h70 u8 tos; member
Drdma_cm.h311 void rdma_set_service_type(struct rdma_cm_id *id, int tos);
Dib_pack.h214 u8 tos; member
/include/uapi/linux/netfilter_ipv6/
Dip6_tables.h82 __u8 tos; member

12