Searched defs:tos (Results 1 - 25 of 25) sorted by relevance

/net/ipv4/netfilter/
H A Dnft_chain_route_ipv4.c34 u_int8_t tos; local
48 tos = iph->tos;
57 iph->tos != tos)
H A Diptable_mangle.c44 u_int8_t tos; local
59 tos = iph->tos;
70 iph->tos != tos) {
/net/ipv4/
H A Dudp_tunnel.c80 __u8 tos, __u8 ttl, __be16 df, __be16 src_port,
96 tos, ttl, df, xnet);
78 udp_tunnel_xmit_skb(struct socket *sock, struct rtable *rt, struct sk_buff *skb, __be32 src, __be32 dst, __u8 tos, __u8 ttl, __be16 df, __be16 src_port, __be16 dst_port, bool xnet) argument
H A Dip_tunnel_core.c51 __u8 tos, __u8 ttl, __be16 df, bool xnet)
73 iph->tos = tos;
49 iptunnel_xmit(struct sock *sk, struct rtable *rt, struct sk_buff *skb, __be32 src, __be32 dst, __u8 proto, __u8 tos, __u8 ttl, __be16 df, bool xnet) argument
H A Dnetfilter.c42 fl4.flowi4_tos = RT_TOS(iph->tos);
88 u_int8_t tos; member in struct:ip_rt_info
100 rt_info->tos = iph->tos;
115 if (!(iph->tos == rt_info->tos &&
H A Dfib_rules.c40 u8 tos; member in struct:fib4_rule
147 if (r->tos && (r->tos != fl4->flowi4_tos))
176 if (frh->tos & ~IPTOS_TOS_MASK)
211 rule4->tos = frh->tos;
242 if (frh->tos && (rule4->tos != frh->tos))
266 frh->tos
[all...]
H A Dgeneve.c115 struct sk_buff *skb, __be32 src, __be32 dst, __u8 tos,
150 tos, ttl, df, src_port, dst_port, xnet);
114 geneve_xmit_skb(struct geneve_sock *gs, struct rtable *rt, struct sk_buff *skb, __be32 src, __be32 dst, __u8 tos, __u8 ttl, __be16 df, __be16 src_port, __be16 dst_port, __be16 tun_flags, u8 vni[3], u8 opt_len, u8 *opt, bool xnet) argument
H A Dxfrm4_policy.c22 int tos,
30 fl4->flowi4_tos = tos;
41 static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos, argument
47 return __xfrm4_dst_lookup(net, &fl4, tos, saddr, daddr);
186 fl4->flowi4_tos = iph->tos;
21 __xfrm4_dst_lookup(struct net *net, struct flowi4 *fl4, int tos, const xfrm_address_t *saddr, const xfrm_address_t *daddr) argument
H A Dicmp.c408 inet->tos = ip_hdr(skb)->tos;
415 ipc.tos = -1;
426 fl4.flowi4_tos = RT_TOS(ip_hdr(skb)->tos);
444 __be32 saddr, u8 tos, u32 mark,
457 fl4->flowi4_tos = RT_TOS(tos);
500 RT_TOS(tos), rt2->dst.dev);
553 u8 tos; local
653 tos = icmp_pointers[type].error ? ((iph->tos
440 icmp_route_lookup(struct net *net, struct flowi4 *fl4, struct sk_buff *skb_in, const struct iphdr *iph, __be32 saddr, u8 tos, u32 mark, int type, int code, struct icmp_bxm *param) argument
[all...]
H A Dip_fragment.c83 static inline u8 ip4_frag_ecn(u8 tos) argument
85 return 1 << (tos & INET_ECN_MASK);
143 qp->ecn = ip4_frag_ecn(arg->iph->tos);
213 iph->tos, head->dev);
337 ecn = ip4_frag_ecn(ip_hdr(skb)->tos);
614 iph->tos |= ecn;
H A Dip_sockglue.c77 put_cmsg(msg, SOL_IP, IP_TOS, 1, &ip_hdr(skb)->tos);
248 ipc->tos = val;
249 ipc->priority = rt_tos2priority(ipc->tos);
605 val |= inet->tos & INET_ECN_MASK;
607 if (inet->tos != val) {
608 inet->tos = val;
1206 val = inet->tos;
1328 int tos = inet->rcv_tos; local
1329 put_cmsg(&msg, SOL_IP, IP_TOS, sizeof(tos), &tos);
[all...]
H A Dfib_frontend.c222 fl4.flowi4_tos = RT_TOS(ip_hdr(skb)->tos);
234 /* Given (packet source, input interface) and optional (dst, oif, tos):
243 u8 tos, int oif, struct net_device *dev,
256 fl4.flowi4_tos = tos;
319 u8 tos, int oif, struct net_device *dev,
330 return __fib_validate_source(skb, src, dst, tos, oif, dev, r, idev, itag);
242 __fib_validate_source(struct sk_buff *skb, __be32 src, __be32 dst, u8 tos, int oif, struct net_device *dev, int rpf, struct in_device *idev, u32 *itag) argument
318 fib_validate_source(struct sk_buff *skb, __be32 src, __be32 dst, u8 tos, int oif, struct net_device *dev, struct in_device *idev, u32 *itag) argument
H A Dfib_semantics.c416 struct fib_alias *fib_find_alias(struct list_head *fah, u8 tos, u32 prio) argument
421 if (fa->fa_tos > tos)
424 fa->fa_tos < tos)
1000 u32 tb_id, u8 type, __be32 dst, int dst_len, u8 tos,
1014 rtm->rtm_tos = tos;
999 fib_dump_info(struct sk_buff *skb, u32 portid, u32 seq, int event, u32 tb_id, u8 type, __be32 dst, int dst_len, u8 tos, struct fib_info *fi, unsigned int flags) argument
H A Dip_tunnel.c345 __be32 key, __u8 tos, int oif)
351 fl4->flowi4_tos = tos;
374 RT_TOS(iph->tos), tunnel->parms.link);
460 &iph->saddr, iph->tos);
643 u8 tos, ttl; local
704 tos = tnl_params->tos;
705 if (tos & 0x1) {
706 tos &= ~0x1;
708 tos
342 init_tunnel_flow(struct flowi4 *fl4, int proto, __be32 daddr, __be32 saddr, __be32 key, __u8 tos, int oif) argument
[all...]
H A Dping.c709 u8 tos; local
743 ipc.tos = -1;
775 tos = get_rttos(&ipc, inet);
779 tos |= RTO_ONLINK;
790 flowi4_init_output(&fl4, ipc.oif, sk->sk_mark, tos,
H A Draw.c24 * Alan Cox : Use ttl/tos
480 u8 tos; local
528 ipc.tos = -1;
568 tos = get_rtconn_flags(&ipc, sk);
570 tos |= RTO_ONLINK;
580 flowi4_init_output(&fl4, ipc.oif, sk->sk_mark, tos,
H A Dfib_trie.c1171 u8 tos = cfg->fc_tos; local
1201 fa = fib_find_alias(fa_head, tos, fi->fib_priority);
1205 * with the same keys [prefix,tos,priority], if such key already
1215 if (fa && fa->fa_tos == tos &&
1232 if (fa->fa_tos != tos)
1296 new_fa->fa_tos = tos;
1618 u8 tos = cfg->fc_tos; local
1645 fa = fib_find_alias(fa_head, tos, 0);
1650 pr_debug("Deleting %08x/%d tos=%d t=%p\n", key, plen, tos,
[all...]
H A Droute.c504 int oif, u8 tos,
512 tos = RT_CONN_FLAGS(sk);
515 flowi4_init_output(fl4, oif, mark, tos,
527 u8 tos = RT_TOS(iph->tos); local
531 __build_flow_key(fl4, sk, iph, oif, tos, prot, mark, 0);
791 u8 tos = RT_TOS(iph->tos); local
797 __build_flow_key(&fl4, sk, iph, oif, tos, prot, mark, 0);
1009 RT_TOS(iph->tos), protoco
502 __build_flow_key(struct flowi4 *fl4, struct sock *sk, const struct iphdr *iph, int oif, u8 tos, u8 prot, u32 mark, int flow_flags) argument
1430 ip_route_input_mc(struct sk_buff *skb, __be32 daddr, __be32 saddr, u8 tos, struct net_device *dev, int our) argument
1528 __mkroute_input(struct sk_buff *skb, const struct fib_result *res, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) argument
1623 ip_mkroute_input(struct sk_buff *skb, struct fib_result *res, const struct flowi4 *fl4, struct in_device *in_dev, __be32 daddr, __be32 saddr, u32 tos) argument
1649 ip_route_input_slow(struct sk_buff *skb, __be32 daddr, __be32 saddr, u8 tos, struct net_device *dev) argument
1832 ip_route_input_noref(struct sk_buff *skb, __be32 daddr, __be32 saddr, u8 tos, struct net_device *dev) argument
2007 __u8 tos = RT_FL_TOS(fl4); local
[all...]
H A Dtcp_ipv4.c685 arg.tos = ip_hdr(skb)->tos;
709 int reply_flags, u8 tos)
769 arg.tos = tos;
810 ip_hdr(skb)->tos);
1327 newinet->rcv_tos = ip_hdr(skb)->tos;
706 tcp_v4_send_ack(struct sk_buff *skb, u32 seq, u32 ack, u32 win, u32 tsval, u32 tsecr, int oif, struct tcp_md5sig_key *key, int reply_flags, u8 tos) argument
H A Dudp.c877 u8 tos; local
897 ipc.tos = -1;
982 tos = get_rttos(&ipc, inet);
986 tos |= RTO_ONLINK;
1006 flowi4_init_output(fl4, ipc.oif, sk->sk_mark, tos,
/net/ipv6/
H A Dxfrm6_policy.c29 static struct dst_entry *xfrm6_dst_lookup(struct net *net, int tos, argument
H A Dsit.c697 &iph->saddr, iph->tos);
812 u8 tos = tunnel->parms.iph.tos; local
830 if (tos == 1)
831 tos = ipv6_get_dsfield(iph6);
896 IPPROTO_IPV6, RT_TOS(tos),
977 tos = INET_ECN_encapsulate(tos, ipv6_get_dsfield(iph6));
987 protocol, tos, ttl, df,
1058 RT_TOS(iph->tos),
[all...]
/net/openvswitch/
H A Dflow.h76 tun_info->tunnel.ipv4_tos = iph->tos;
107 u8 tos; /* IP ToS. */ member in struct:sw_flow_key::__anon117
/net/core/
H A Dpktgen.c323 __u8 tos; /* six MSB of (former) IPv4 TOS member in struct:pktgen_dev
611 if (pkt_dev->tos)
612 seq_printf(seq, " tos: 0x%02x\n", pkt_dev->tos);
1692 if (!strcmp(name, "tos")) {
1700 pkt_dev->tos = tmp_value;
1701 sprintf(pg_result, "OK: tos=0x%02x", pkt_dev->tos);
1703 sprintf(pg_result, "ERROR: tos must be 00-ff");
2831 iph->tos
[all...]
/net/xfrm/
H A Dxfrm_policy.c117 static inline struct dst_entry *__xfrm_dst_lookup(struct net *net, int tos, argument
129 dst = afinfo->dst_lookup(net, tos, saddr, daddr);
136 static inline struct dst_entry *xfrm_dst_lookup(struct xfrm_state *x, int tos, argument
155 dst = __xfrm_dst_lookup(net, tos, saddr, daddr, family);
1489 int tos; local
1494 tos = afinfo->get_tos(fl);
1498 return tos;
1644 int tos; local
1650 tos = xfrm_get_tos(fl, family);
1651 err = tos;
[all...]

Completed in 153 milliseconds