/linux-2.4.37.9/net/ipv6/ |
D | route.c | 130 static int rt6_flow_match_in(struct rt6_info *rt, struct sk_buff *skb); 131 static int rt6_flow_match_out(struct rt6_info *rt, struct sock *sk); 133 static struct rt6_info *rt6_flow_lookup(struct rt6_info *rt, 151 static __inline__ struct rt6_info *rt6_device_match(struct rt6_info *rt, in rt6_device_match() argument 159 for (sprt = rt; sprt; sprt = sprt->u.next) { in rt6_device_match() 173 return rt; in rt6_device_match() 183 static struct rt6_info *rt6_best_dflt(struct rt6_info *rt, int oif) in rt6_best_dflt() argument 189 for (sprt = rt; sprt; sprt = sprt->u.next) { in rt6_best_dflt() 258 for (sprt = rt; in rt6_best_dflt() 306 struct rt6_info *rt; in rt6_lookup() local [all …]
|
D | ip6_fib.c | 84 static void fib6_prune_clones(struct fib6_node *fn, struct rt6_info *rt); 225 static __inline__ void rt6_release(struct rt6_info *rt) in rt6_release() argument 227 if (atomic_dec_and_test(&rt->rt6i_ref)) in rt6_release() 228 dst_free(&rt->u.dst); in rt6_release() 426 static int fib6_add_rt2node(struct fib6_node *fn, struct rt6_info *rt, in fib6_add_rt2node() argument 436 !(rt->rt6i_flags & (RTF_DEFAULT | RTF_ADDRCONF | RTF_ALLONLINK)) ){ in fib6_add_rt2node() 440 fn->leaf = rt; in fib6_add_rt2node() 441 rt->u.next = NULL; in fib6_add_rt2node() 450 if (iter->rt6i_metric == rt->rt6i_metric) { in fib6_add_rt2node() 455 if ((iter->rt6i_dev == rt->rt6i_dev) && in fib6_add_rt2node() [all …]
|
D | ip6_fw.c | 206 struct rt6_info *rt; in ip6_fw_accept() local 211 rt = (struct rt6_info *) dst; in ip6_fw_accept() 212 rl = (struct ip6_fw_rule *) rt->rt6i_flowr; in ip6_fw_accept() 234 struct dst_entry *rt, in ip6_fw_dup() argument 245 nrt = ip6_rt_copy((struct rt6_info *) rt); in ip6_fw_dup() 287 struct rt6_info *rt; in ip6_fw_msg_add() local 319 rt->u.dst.error = -EPERM; in ip6_fw_msg_add() 326 rt->u.dst.input = ip6_fw_discard; in ip6_fw_msg_add() 327 rt->u.dst.output = ip6_fw_discard; in ip6_fw_msg_add() 329 rt->u.dst.input = ip6_fw_reject; in ip6_fw_msg_add() [all …]
|
/linux-2.4.37.9/drivers/net/appletalk/ |
D | ipddp.c | 53 static int ipddp_delete(struct ipddp_route *rt); 54 static struct ipddp_route* ipddp_find_route(struct ipddp_route *rt); 118 struct ipddp_route *rt; in ipddp_xmit() local 124 for(rt = ipddp_route_list; rt != NULL; rt = rt->next) in ipddp_xmit() 126 if(rt->ip == paddr) in ipddp_xmit() 129 if(rt == NULL) in ipddp_xmit() 132 our_addr = atalk_find_dev_addr(rt->dev); in ipddp_xmit() 153 if(rt->dev->type == ARPHRD_LOCALTLK) in ipddp_xmit() 160 ddp->deh_dnet = rt->at.s_net; /* FIXME more hops?? */ in ipddp_xmit() 163 ddp->deh_dnode = rt->at.s_node; in ipddp_xmit() [all …]
|
/linux-2.4.37.9/net/decnet/ |
D | dn_route.c | 141 struct dn_route *rt, **rtp; in SMP_TIMER_NAME() local 149 while((rt=*rtp) != NULL) { in SMP_TIMER_NAME() 150 if (atomic_read(&rt->u.dst.__refcnt) || in SMP_TIMER_NAME() 151 (now - rt->u.dst.lastuse) < expire) { in SMP_TIMER_NAME() 152 rtp = &rt->u.rt_next; in SMP_TIMER_NAME() 155 *rtp = rt->u.rt_next; in SMP_TIMER_NAME() 156 rt->u.rt_next = NULL; in SMP_TIMER_NAME() 157 dst_free(&rt->u.dst); in SMP_TIMER_NAME() 172 struct dn_route *rt, **rtp; in dn_dst_gc() local 182 while((rt=*rtp) != NULL) { in dn_dst_gc() [all …]
|
/linux-2.4.37.9/net/ipv4/ |
D | route.c | 325 static __inline__ void rt_free(struct rtable *rt) in rt_free() argument 327 dst_free(&rt->u.dst); in rt_free() 330 static __inline__ void rt_drop(struct rtable *rt) in rt_drop() argument 332 ip_rt_put(rt); in rt_drop() 333 dst_free(&rt->u.dst); in rt_drop() 377 static inline u32 rt_score(struct rtable *rt) in rt_score() argument 379 u32 score = jiffies - rt->u.dst.lastuse; in rt_score() 383 if (rt_valuable(rt)) in rt_score() 386 if (!rt->key.iif || in rt_score() 387 !(rt->rt_flags & (RTCF_BROADCAST|RTCF_MULTICAST|RTCF_LOCAL))) in rt_score() [all …]
|
D | ip_output.c | 125 struct rtable *rt = (struct rtable *)skb->dst; in ip_build_and_send_pkt() local 137 if (ip_dont_fragment(sk, &rt->u.dst)) in ip_build_and_send_pkt() 142 iph->daddr = rt->rt_dst; in ip_build_and_send_pkt() 143 iph->saddr = rt->rt_src; in ip_build_and_send_pkt() 146 ip_select_ident(iph, &rt->u.dst, sk); in ip_build_and_send_pkt() 151 ip_options_build(skb, opt, daddr, rt, 0); in ip_build_and_send_pkt() 156 return NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, rt->u.dst.dev, in ip_build_and_send_pkt() 206 struct rtable *rt = (struct rtable*)skb->dst; in ip_mc_output() local 207 struct net_device *dev = rt->u.dst.dev; in ip_mc_output() 214 if (rt->rt_flags & RTCF_NAT) in ip_mc_output() [all …]
|
D | ip_forward.c | 52 struct rtable *rt = (struct rtable*)skb->dst; in ip_forward_finish() local 54 if (rt->rt_flags&RTCF_FAST && !netdev_fastroute_obstacles) { in ip_forward_finish() 56 unsigned h = ((*(u8*)&rt->key.dst)^(*(u8*)&rt->key.src))&NETDEV_FASTROUTE_HMASK; in ip_forward_finish() 60 skb->dev->fastpath[h] = dst_clone(&rt->u.dst); in ip_forward_finish() 77 struct rtable *rt; /* Route we use */ in ip_forward() local 96 rt = (struct rtable*)skb->dst; in ip_forward() 101 if (opt->is_strictroute && rt->rt_dst != rt->rt_gateway) in ip_forward() 110 dev2 = rt->u.dst.dev; in ip_forward() 111 mtu = rt->u.dst.pmtu; in ip_forward() 117 if (rt->rt_flags&RTCF_DOREDIRECT && !opt->srr) in ip_forward() [all …]
|
D | icmp.c | 246 static inline int icmpv4_xrlim_allow(struct rtable *rt, int type, int code) in icmpv4_xrlim_allow() argument 248 struct dst_entry *dst = &rt->u.dst; in icmpv4_xrlim_allow() 327 struct rtable *rt = (struct rtable*)skb->dst; in icmp_reply() local 342 daddr = ipc.addr = rt->rt_src; in icmp_reply() 349 if (ip_route_output(&rt, daddr, rt->rt_spec_dst, RT_TOS(skb->nh.iph->tos), 0)) in icmp_reply() 351 if (icmpv4_xrlim_allow(rt, icmp_param->data.icmph.type, in icmp_reply() 355 &ipc, rt, MSG_DONTWAIT); in icmp_reply() 357 ip_rt_put(rt); in icmp_reply() 378 struct rtable *rt = (struct rtable*)skb_in->dst; in icmp_send() local 383 if (!rt) in icmp_send() [all …]
|
D | ipip.c | 358 struct rtable *rt; in ipip_err() 420 if (ip_route_output(&rt, eiph->saddr, 0, RT_TOS(eiph->tos), 0)) { in ipip_err() 424 skb2->dev = rt->u.dst.dev; in ipip_err() 427 if (rt->rt_flags&RTCF_LOCAL) { in ipip_err() 428 ip_rt_put(rt); in ipip_err() 429 rt = NULL; in ipip_err() 430 if (ip_route_output(&rt, eiph->daddr, eiph->saddr, eiph->tos, 0) || in ipip_err() 431 rt->u.dst.dev->type != ARPHRD_IPGRE) { in ipip_err() 432 ip_rt_put(rt); in ipip_err() 437 ip_rt_put(rt); in ipip_err() [all …]
|
/linux-2.4.37.9/net/sunrpc/ |
D | timer.c | 14 rpc_init_rtt(struct rpc_rtt *rt, long timeo) in rpc_init_rtt() argument 18 rt->timeo = timeo; in rpc_init_rtt() 22 rt->srtt[i] = t; in rpc_init_rtt() 23 rt->sdrtt[i] = RPC_RTO_INIT; in rpc_init_rtt() 25 memset(rt->ntimeouts, 0, sizeof(rt->ntimeouts)); in rpc_init_rtt() 29 rpc_update_rtt(struct rpc_rtt *rt, int timer, long m) in rpc_update_rtt() argument 38 srtt = &rt->srtt[timer]; in rpc_update_rtt() 43 sdrtt = &rt->sdrtt[timer]; in rpc_update_rtt() 65 rpc_calc_rto(struct rpc_rtt *rt, int timer) in rpc_calc_rto() argument 69 return rt->timeo; in rpc_calc_rto() [all …]
|
/linux-2.4.37.9/net/ipv4/netfilter/ |
D | ipt_MIRROR.c | 48 struct rtable *rt; in route_mirror() local 55 if (ip_route_output_key(&rt, &key) != 0) in route_mirror() 61 if (ip_route_output_key(&rt, &key) != 0) in route_mirror() 66 RT_TOS(iph->tos), rt->u.dst.dev) != 0) { in route_mirror() 67 dst_release(&rt->u.dst); in route_mirror() 70 dst_release(&rt->u.dst); in route_mirror() 71 rt = (struct rtable *)skb->dst; in route_mirror() 75 if (rt->u.dst.error) { in route_mirror() 76 dst_release(&rt->u.dst); in route_mirror() 77 rt = NULL; in route_mirror() [all …]
|
D | ipt_REJECT.c | 30 struct rtable *rt; in route_reverse() local 38 if (ip_route_output_key(&rt, &key) != 0) in route_reverse() 44 if (ip_route_output_key(&rt, &key) != 0) in route_reverse() 49 RT_TOS(iph->tos), rt->u.dst.dev) != 0) { in route_reverse() 50 dst_release(&rt->u.dst); in route_reverse() 53 dst_release(&rt->u.dst); in route_reverse() 54 rt = (struct rtable *)skb->dst; in route_reverse() 58 if (rt->u.dst.error) { in route_reverse() 59 dst_release(&rt->u.dst); in route_reverse() 60 rt = NULL; in route_reverse() [all …]
|
/linux-2.4.37.9/include/linux/sunrpc/ |
D | timer.h | 22 extern void rpc_init_rtt(struct rpc_rtt *rt, long timeo); 23 extern void rpc_update_rtt(struct rpc_rtt *rt, int timer, long m); 24 extern long rpc_calc_rto(struct rpc_rtt *rt, int timer); 26 static inline void rpc_set_timeo(struct rpc_rtt *rt, int timer, int ntimeo) in rpc_set_timeo() argument 31 t = &rt->ntimeouts[timer-1]; in rpc_set_timeo() 42 static inline int rpc_ntimeo(struct rpc_rtt *rt, int timer) in rpc_ntimeo() argument 46 return rt->ntimeouts[timer-1]; in rpc_ntimeo()
|
/linux-2.4.37.9/drivers/media/radio/ |
D | radio-gemtek.c | 144 struct gemtek_device *rt=dev->priv; in gemtek_ioctl() local 175 v.signal=0xFFFF*gemtek_getsigstr(rt); in gemtek_ioctl() 192 if(copy_to_user(arg, &rt->curfreq, sizeof(rt->curfreq))) in gemtek_ioctl() 196 if(copy_from_user(&rt->curfreq, arg,sizeof(rt->curfreq))) in gemtek_ioctl() 199 gemtek_setfreq(rt, rt->curfreq); in gemtek_ioctl() 200 gemtek_setfreq(rt, rt->curfreq); in gemtek_ioctl() 223 gemtek_mute(rt); in gemtek_ioctl() 225 gemtek_unmute(rt); in gemtek_ioctl()
|
D | radio-rtrack2.c | 112 struct rt_device *rt=dev->priv; in rt_ioctl() local 143 v.signal=0xFFFF*rt_getsigstr(rt); in rt_ioctl() 160 if(copy_to_user(arg, &rt->curfreq, sizeof(rt->curfreq))) in rt_ioctl() 164 if(copy_from_user(&rt->curfreq, arg,sizeof(rt->curfreq))) in rt_ioctl() 166 rt_setfreq(rt, rt->curfreq); in rt_ioctl() 189 rt_mute(rt); in rt_ioctl() 191 rt_unmute(rt); in rt_ioctl()
|
D | radio-aimslab.c | 219 struct rt_device *rt=dev->priv; in rt_ioctl() local 251 v.signal=0xFFFF*rt_getsigstr(rt); in rt_ioctl() 267 if(copy_to_user(arg, &rt->curfreq, sizeof(rt->curfreq))) in rt_ioctl() 271 if(copy_from_user(&rt->curfreq, arg,sizeof(rt->curfreq))) in rt_ioctl() 273 rt_setfreq(rt, rt->curfreq); in rt_ioctl() 280 v.volume=rt->curvol * 6554; in rt_ioctl() 296 rt_mute(rt); in rt_ioctl() 298 rt_setvol(rt,v.volume/6554); in rt_ioctl()
|
/linux-2.4.37.9/include/net/ |
D | route.h | 138 extern void ip_rt_get_source(u8 *src, struct rtable *rt); 151 static inline void ip_rt_put(struct rtable * rt) in ip_rt_put() argument 153 if (rt) in ip_rt_put() 154 dst_release(&rt->u.dst); in ip_rt_put() 179 extern void rt_bind_peer(struct rtable *rt, int create); 181 static inline struct inet_peer *rt_get_peer(struct rtable *rt) in rt_get_peer() argument 183 if (rt->peer) in rt_get_peer() 184 return rt->peer; in rt_get_peer() 186 rt_bind_peer(rt, 0); in rt_get_peer() 187 return rt->peer; in rt_get_peer()
|
/linux-2.4.37.9/arch/x86_64/kernel/ |
D | pci-irq.c | 53 struct irq_routing_table *rt; in pirq_find_routing_table() local 58 rt = (struct irq_routing_table *) addr; in pirq_find_routing_table() 59 if (rt->signature != PIRQ_SIGNATURE || in pirq_find_routing_table() 60 rt->version != PIRQ_VERSION || in pirq_find_routing_table() 61 rt->size % 16 || in pirq_find_routing_table() 62 rt->size < sizeof(struct irq_routing_table)) in pirq_find_routing_table() 65 for(i=0; i<rt->size; i++) in pirq_find_routing_table() 68 DBG("PCI: Interrupt Routing Table found at 0x%p\n", rt); in pirq_find_routing_table() 69 return rt; in pirq_find_routing_table() 86 struct irq_routing_table *rt = pirq_table; in pirq_peer_trick() local [all …]
|
/linux-2.4.37.9/net/appletalk/ |
D | ddp.c | 608 struct atalk_route *rt; in atrtr_create() local 626 for (rt = atalk_router_list; rt; rt = rt->next) { in atrtr_create() 627 if (r->rt_flags != rt->flags) in atrtr_create() 630 if (ta->sat_addr.s_net == rt->target.s_net) { in atrtr_create() 631 if (!(rt->flags & RTF_HOST)) in atrtr_create() 633 if (ta->sat_addr.s_node == rt->target.s_node) in atrtr_create() 663 if (!rt) { in atrtr_create() 664 rt = kmalloc(sizeof(struct atalk_route), GFP_ATOMIC); in atrtr_create() 667 if (!rt) in atrtr_create() 670 rt->next = atalk_router_list; in atrtr_create() [all …]
|
/linux-2.4.37.9/arch/i386/kernel/ |
D | pci-irq.c | 61 struct irq_routing_table *rt; in pirq_find_routing_table() local 66 rt = (struct irq_routing_table *) addr; in pirq_find_routing_table() 67 if (rt->signature != PIRQ_SIGNATURE || in pirq_find_routing_table() 68 rt->version != PIRQ_VERSION || in pirq_find_routing_table() 69 rt->size % 16 || in pirq_find_routing_table() 70 rt->size < sizeof(struct irq_routing_table)) in pirq_find_routing_table() 73 for(i=0; i<rt->size; i++) in pirq_find_routing_table() 76 DBG("PCI: Interrupt Routing Table found at 0x%p\n", rt); in pirq_find_routing_table() 77 return rt; in pirq_find_routing_table() 91 struct irq_routing_table *rt = pirq_table; in pirq_peer_trick() local [all …]
|
/linux-2.4.37.9/include/asm-mips64/ |
D | asm.h | 166 #define MOVN(rd,rs,rt) \ argument 169 beqz rt,9f; \ 173 #define MOVZ(rd,rs,rt) \ argument 176 bnez rt,9f; \ 182 #define MOVN(rd,rs,rt) \ argument 185 bnezl rt,9f; \ 189 #define MOVZ(rd,rs,rt) \ argument 192 beqzl rt,9f; \ 199 #define MOVN(rd,rs,rt) \ argument 200 movn rd,rs,rt [all …]
|
D | inst.h | 170 unsigned int rt : 5; member 177 unsigned int rt : 5; member 192 unsigned int rt : 5; member 201 unsigned int rt : 5; member 211 unsigned int rt : 5; member 236 unsigned int rt : 5; member 243 unsigned int rt : 5; member 260 unsigned int rt : 5; member 269 unsigned int rt : 5; member 278 unsigned int rt : 5; member
|
/linux-2.4.37.9/include/asm-mips/ |
D | asm.h | 166 #define MOVN(rd,rs,rt) \ argument 169 beqz rt,9f; \ 173 #define MOVZ(rd,rs,rt) \ argument 176 bnez rt,9f; \ 182 #define MOVN(rd,rs,rt) \ argument 185 bnezl rt,9f; \ 189 #define MOVZ(rd,rs,rt) \ argument 192 beqzl rt,9f; \ 199 #define MOVN(rd,rs,rt) \ argument 200 movn rd,rs,rt [all …]
|
D | inst.h | 170 unsigned int rt : 5; member 177 unsigned int rt : 5; member 192 unsigned int rt : 5; member 201 unsigned int rt : 5; member 211 unsigned int rt : 5; member 236 unsigned int rt : 5; member 243 unsigned int rt : 5; member 260 unsigned int rt : 5; member 269 unsigned int rt : 5; member 278 unsigned int rt : 5; member
|