/linux-3.4.99/include/net/ |
D | route.h | 40 #define RT_CONN_FLAGS(sk) (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE)) 129 __be32 saddr, u8 tos, int oif) in ip_route_output() argument 135 .flowi4_tos = tos, in ip_route_output() 144 __u8 proto, __u8 tos, int oif) in ip_route_output_ports() argument 146 flowi4_init_output(fl4, oif, sk ? sk->sk_mark : 0, tos, in ip_route_output_ports() 157 __be32 gre_key, __u8 tos, int oif) in ip_route_output_gre() argument 163 fl4->flowi4_tos = tos; in ip_route_output_gre() 170 u8 tos, struct net_device *devin, bool noref); 173 u8 tos, struct net_device *devin) in ip_route_input() argument 175 return ip_route_input_common(skb, dst, src, tos, devin, false); in ip_route_input() [all …]
|
D | dsfield.h | 17 return iph->tos; in ipv4_get_dsfield() 33 dsfield = (iph->tos & mask) | value; in ipv4_change_dsfield() 34 check += iph->tos; in ipv4_change_dsfield() 39 iph->tos = dsfield; in ipv4_change_dsfield()
|
D | inet_ecn.h | 51 inet_sk(sk)->tos |= INET_ECN_ECT_0; in INET_ECN_xmit() 58 inet_sk(sk)->tos &= ~INET_ECN_MASK; in INET_ECN_dontxmit() 75 u32 ecn = (iph->tos + 1) & INET_ECN_MASK; in IP_ECN_set_ce() 95 iph->tos |= INET_ECN_CE; in IP_ECN_set_ce() 101 iph->tos &= ~INET_ECN_MASK; in IP_ECN_clear()
|
D | flow.h | 78 __u32 mark, __u8 tos, __u8 scope, in flowi4_init_output() argument 86 fl4->flowi4_tos = tos; in flowi4_init_output() 98 static inline void flowi4_update_output(struct flowi4 *fl4, int oif, __u8 tos, in flowi4_update_output() argument 102 fl4->flowi4_tos = tos; in flowi4_update_output()
|
/linux-3.4.99/net/ipv4/ |
D | fib_rules.c | 40 u8 tos; member 119 if (r->tos && (r->tos != fl4->flowi4_tos)) in fib4_rule_match() 148 if (frh->tos & ~IPTOS_TOS_MASK) in fib4_rule_configure() 180 rule4->tos = frh->tos; in fib4_rule_configure() 198 if (frh->tos && (rule4->tos != frh->tos)) in fib4_rule_compare() 222 frh->tos = rule4->tos; in fib4_rule_fill()
|
D | xfrm4_mode_tunnel.c | 22 if (INET_ECN_is_ce(XFRM_MODE_SKB_CB(skb)->tos)) in ipip_ecn_decapsulate() 48 top_iph->tos = INET_ECN_encapsulate(XFRM_MODE_SKB_CB(skb)->tos, in xfrm4_mode_tunnel_output() 49 XFRM_MODE_SKB_CB(skb)->tos); in xfrm4_mode_tunnel_output() 82 ipv4_copy_dscp(XFRM_MODE_SKB_CB(skb)->tos, ipip_hdr(skb)); in xfrm4_mode_tunnel_input()
|
D | netfilter.c | 37 fl4.flowi4_tos = RT_TOS(iph->tos); in ip_route_me_harder() 120 u_int8_t tos; member 132 rt_info->tos = iph->tos; in nf_ip_saveroute() 147 if (!(iph->tos == rt_info->tos && in nf_ip_reroute()
|
D | icmp.c | 349 inet->tos = ip_hdr(skb)->tos; in icmp_reply() 361 fl4.flowi4_tos = RT_TOS(ip_hdr(skb)->tos); in icmp_reply() 379 __be32 saddr, u8 tos, in icmp_route_lookup() argument 391 fl4->flowi4_tos = RT_TOS(tos); in icmp_route_lookup() 434 RT_TOS(tos), rt2->dst.dev); in icmp_route_lookup() 487 u8 tos; in icmp_send() local 581 tos = icmp_pointers[type].error ? ((iph->tos & IPTOS_TOS_MASK) | in icmp_send() 583 iph->tos; in icmp_send() 599 inet_sk(sk)->tos = tos; in icmp_send() 604 rt = icmp_route_lookup(net, &fl4, skb_in, iph, saddr, tos, in icmp_send()
|
D | ipip.c | 379 if (INET_ECN_is_ce(outer_iph->tos)) in ipip_ecn_decapsulate() 434 u8 tos = tunnel->parms.iph.tos; in ipip_tunnel_xmit() local 448 if (tos & 1) in ipip_tunnel_xmit() 449 tos = old_iph->tos; in ipip_tunnel_xmit() 464 IPPROTO_IPIP, RT_TOS(tos), in ipip_tunnel_xmit() 548 iph->tos = INET_ECN_encapsulate(tos, old_iph->tos); in ipip_tunnel_xmit() 585 RT_TOS(iph->tos), in ipip_tunnel_bind_dev() 677 t->parms.iph.tos = p.iph.tos; in ipip_tunnel_ioctl()
|
D | ip_gre.c | 540 if (INET_ECN_is_ce(iph->tos)) { in ipgre_ecn_decapsulate() 550 ipgre_ecn_encapsulate(u8 tos, const struct iphdr *old_iph, struct sk_buff *skb) in ipgre_ecn_encapsulate() argument 554 inner = old_iph->tos; in ipgre_ecn_encapsulate() 557 return INET_ECN_encapsulate(tos, inner); in ipgre_ecn_encapsulate() 704 u8 tos; in ipgre_tunnel_xmit() local 772 tos = tiph->tos; in ipgre_tunnel_xmit() 773 if (tos == 1) { in ipgre_tunnel_xmit() 774 tos = 0; in ipgre_tunnel_xmit() 776 tos = old_iph->tos; in ipgre_tunnel_xmit() 778 tos = ipv6_get_dsfield((const struct ipv6hdr *)old_iph); in ipgre_tunnel_xmit() [all …]
|
D | xfrm4_policy.c | 22 int tos, in __xfrm4_dst_lookup() argument 30 fl4->flowi4_tos = tos; in __xfrm4_dst_lookup() 41 static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos, in xfrm4_dst_lookup() argument 47 return __xfrm4_dst_lookup(net, &fl4, tos, saddr, daddr); in xfrm4_dst_lookup() 190 fl4->flowi4_tos = iph->tos; in _decode_session4()
|
D | fib_lookup.h | 32 int dst_len, u8 tos, struct fib_info *fi, 38 u8 tos, u32 prio);
|
D | ah4.c | 133 top_iph->tos = iph->tos; in ah_output_done() 183 iph->tos = top_iph->tos; in ah_output() 198 top_iph->tos = 0; in ah_output() 233 top_iph->tos = iph->tos; in ah_output() 349 iph->tos = 0; in ah_input()
|
D | xfrm4_state.c | 64 XFRM_MODE_SKB_CB(skb)->tos = iph->tos; in xfrm4_extract_header()
|
/linux-3.4.99/drivers/staging/rtl8712/ |
D | ip.h | 25 #define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument 32 #define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK) argument 124 __u8 tos; member
|
/linux-3.4.99/include/linux/ |
D | ip.h | 23 #define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument 30 #define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK) argument 95 __u8 tos; member
|
D | in_route.h | 30 #define RT_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument
|
/linux-3.4.99/arch/frv/kernel/ |
D | traps.c | 584 unsigned long tos = 0, stop = 0, base; in show_backtrace() local 591 tos = sp; in show_backtrace() 601 while (tos < stop) { in show_backtrace() 603 printk(" %04lx :", tos & 0xffff); in show_backtrace() 605 printk(" %08lx", *(unsigned long *) tos); in show_backtrace() 607 tos += 4; in show_backtrace() 622 tos = frame->sp; in show_backtrace() 623 if (((unsigned long) frame) + sizeof(*frame) != tos) { in show_backtrace() 625 tos, frame); in show_backtrace() 634 (stop < tos || in show_backtrace() [all …]
|
/linux-3.4.99/net/ipv4/netfilter/ |
D | iptable_mangle.c | 44 u_int8_t tos; in ipt_mangle_out() local 58 tos = iph->tos; in ipt_mangle_out() 69 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()
|
/linux-3.4.99/arch/xtensa/kernel/ |
D | process.c | 181 unsigned long tos; in copy_thread() local 185 tos = (unsigned long)task_stack_page(p) + THREAD_SIZE; in copy_thread() 187 childregs = (struct pt_regs*)(tos - PT_USER_SIZE); in copy_thread() 189 childregs = (struct pt_regs*)tos - 1; in copy_thread() 197 childregs->areg[1] = tos; in copy_thread()
|
/linux-3.4.99/arch/x86/kernel/ |
D | kprobes.c | 767 unsigned long *tos = stack_addr(regs); in resume_execution() local 778 *tos &= ~(X86_EFLAGS_TF | X86_EFLAGS_IF); in resume_execution() 779 *tos |= kcb->kprobe_old_flags; in resume_execution() 791 *tos = orig_ip + (*tos - copy_ip); in resume_execution() 795 *tos = orig_ip + (*tos - copy_ip); in resume_execution() 805 *tos = orig_ip + (*tos - copy_ip); in resume_execution()
|
/linux-3.4.99/arch/x86/kernel/cpu/ |
D | perf_event_intel_lbr.c | 225 u64 tos; in intel_pmu_lbr_tos() local 227 rdmsrl(x86_pmu.lbr_tos, tos); in intel_pmu_lbr_tos() 229 return tos; in intel_pmu_lbr_tos() 235 u64 tos = intel_pmu_lbr_tos(); in intel_pmu_lbr_read_32() local 239 unsigned long lbr_idx = (tos - i) & mask; in intel_pmu_lbr_read_32() 268 u64 tos = intel_pmu_lbr_tos(); in intel_pmu_lbr_read_64() local 272 unsigned long lbr_idx = (tos - i) & mask; in intel_pmu_lbr_read_64()
|
/linux-3.4.99/net/ipv6/ |
D | fib6_rules.c | 177 rule6->tclass = frh->tos; in fib6_rule_configure() 195 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare() 216 frh->tos = rule6->tclass; in fib6_rule_fill()
|
/linux-3.4.99/net/bridge/netfilter/ |
D | ebt_ip.c | 40 FWINV(info->tos != ih->tos, EBT_IP_TOS)) in ebt_ip_mt()
|