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
140 __be32 saddr, u8 tos, int oif) in ip_route_output() argument
144 .flowi4_tos = tos, in ip_route_output()
155 __u8 proto, __u8 tos, int oif) in ip_route_output_ports() argument
157 flowi4_init_output(fl4, oif, sk ? sk->sk_mark : 0, tos, in ip_route_output_ports()
168 __be32 gre_key, __u8 tos, int oif) in ip_route_output_gre() argument
174 fl4->flowi4_tos = tos; in ip_route_output_gre()
180 u8 tos, struct net_device *dev,
183 u8 tos, struct net_device *devin);
[all …]
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()
Dinet_ecn.h55 inet_sk(sk)->tos |= INET_ECN_ECT_0; in INET_ECN_xmit()
62 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()
99 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()
113 iph->tos ^= INET_ECN_MASK; in IP_ECN_set_ect1()
119 iph->tos &= ~INET_ECN_MASK; in IP_ECN_clear()
278 inner = ip_hdr(skb)->tos; in IP_ECN_decapsulate()
287 return INET_ECN_decapsulate(skb, oiph->tos, inner); in IP_ECN_decapsulate()
297 inner = ip_hdr(skb)->tos; in IP6_ECN_decapsulate()
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()
380 return iph->tos; in ip_tunnel_get_dsfield()
401 static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph, in ip_tunnel_ecn_encap() argument
406 return INET_ECN_encapsulate(tos, inner); in ip_tunnel_ecn_encap()
420 u8 tos, u8 ttl, __be16 df, bool xnet);
Dflow.h99 __u32 mark, __u8 tos, __u8 scope, in flowi4_init_output() argument
108 fl4->flowi4_tos = tos; in flowi4_init_output()
123 static inline void flowi4_update_output(struct flowi4 *fl4, int oif, __u8 tos, in flowi4_update_output() argument
127 fl4->flowi4_tos = tos; in flowi4_update_output()
Dip.h80 __s16 tos; member
87 *ipcm = (struct ipcm_cookie) { .tos = -1 }; in ipcm_init()
213 __u8 tos);
242 return __ip_queue_xmit(sk, skb, fl, inet_sk(sk)->tos); in ip_queue_xmit()
252 return (ipc->tos != -1) ? RT_TOS(ipc->tos) : RT_TOS(inet->tos); in get_rttos()
257 return (ipc->tos != -1) ? RT_CONN_FLAGS_TOS(sk, ipc->tos) : RT_CONN_FLAGS(sk); in get_rtconn_flags()
273 u8 tos; member
Dinet_sock.h160 __s16 tos; member
216 __u8 tos; member
Dudp_tunnel.h142 __be32 src, __be32 dst, __u8 tos, __u8 ttl,
Dflow_dissector.h203 __u8 tos; member
Dip_fib.h212 u8 tos; member
410 u8 tos, int oif, struct net_device *dev,
/include/uapi/linux/
Din_route.h31 #define RT_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument
Dip.h24 #define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument
31 #define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK) argument
96 __u8 tos; member
Drds.h158 __u8 tos; member
181 __u8 tos; member
192 __u8 tos; member
225 __u8 tos; member
252 __u8 tos; member
268 __u8 tos; member
Dfib_rules.h23 __u8 tos; member
Dethtool.h763 __u8 tos; member
779 __u8 tos; member
797 __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.h96 u8 tos; member
Drdma_cm.h355 void rdma_set_service_type(struct rdma_cm_id *id, int tos);
Dib_pack.h241 u8 tos; member
/include/uapi/linux/netfilter_ipv6/
Dip6_tables.h82 __u8 tos; member

12