tag | line | file | source code |
rt | 192 | kernel/module.c | struct mod_routines rt; |
rt | 217 | kernel/module.c | memcpy_fromfs(&rt, routines, sizeof rt); |
rt | 226 | kernel/module.c | (unsigned long) rt.init, (unsigned long) rt.cleanup)); |
rt | 227 | kernel/module.c | mp->cleanup = rt.cleanup; |
rt | 304 | kernel/module.c | if ((*rt.init)() != 0) { |
rt | 514 | net/appletalk/ddp.c | struct atalk_route *rt; |
rt | 537 | net/appletalk/ddp.c | for(rt=atalk_router_list;rt!=NULL;rt=rt->next) |
rt | 539 | net/appletalk/ddp.c | if(r->rt_flags != rt->flags) |
rt | 542 | net/appletalk/ddp.c | if(ta->sat_addr.s_net == rt->target.s_net) { |
rt | 543 | net/appletalk/ddp.c | if(!(rt->flags&RTF_HOST)) |
rt | 545 | net/appletalk/ddp.c | if(ta->sat_addr.s_node == rt->target.s_node) |
rt | 567 | net/appletalk/ddp.c | if(rt==NULL) |
rt | 569 | net/appletalk/ddp.c | rt=(struct atalk_route *)kmalloc(sizeof(struct atalk_route), GFP_KERNEL); |
rt | 570 | net/appletalk/ddp.c | if(rt==NULL) |
rt | 573 | net/appletalk/ddp.c | rt->next=atalk_router_list; |
rt | 574 | net/appletalk/ddp.c | atalk_router_list=rt; |
rt | 580 | net/appletalk/ddp.c | rt->target=ta->sat_addr; |
rt | 581 | net/appletalk/ddp.c | rt->dev=devhint; |
rt | 582 | net/appletalk/ddp.c | rt->flags=r->rt_flags; |
rt | 583 | net/appletalk/ddp.c | rt->gateway=ga->sat_addr; |
rt | 788 | net/appletalk/ddp.c | struct rtentry rt; |
rt | 790 | net/appletalk/ddp.c | err=verify_area(VERIFY_READ, arg, sizeof(rt)); |
rt | 793 | net/appletalk/ddp.c | memcpy_fromfs(&rt,arg,sizeof(rt)); |
rt | 798 | net/appletalk/ddp.c | if(rt.rt_dst.sa_family!=AF_APPLETALK) |
rt | 800 | net/appletalk/ddp.c | return atrtr_delete(&((struct sockaddr_at *)&rt.rt_dst)->sat_addr); |
rt | 802 | net/appletalk/ddp.c | return atrtr_create(&rt, NULL); |
rt | 845 | net/appletalk/ddp.c | struct atalk_route *rt; |
rt | 853 | net/appletalk/ddp.c | rt=&atrtr_default; |
rt | 855 | net/appletalk/ddp.c | ntohs(rt->gateway.s_net), rt->gateway.s_node, rt->flags, |
rt | 856 | net/appletalk/ddp.c | rt->dev->name); |
rt | 858 | net/appletalk/ddp.c | for (rt = atalk_router_list; rt != NULL; rt = rt->next) |
rt | 861 | net/appletalk/ddp.c | ntohs(rt->target.s_net),rt->target.s_node, |
rt | 862 | net/appletalk/ddp.c | ntohs(rt->gateway.s_net), rt->gateway.s_node, rt->flags, |
rt | 863 | net/appletalk/ddp.c | rt->dev->name); |
rt | 1395 | net/appletalk/ddp.c | struct atalk_route *rt; |
rt | 1410 | net/appletalk/ddp.c | rt=atrtr_find(&ta); |
rt | 1411 | net/appletalk/ddp.c | if(rt==NULL || ddp->deh_hops==15) |
rt | 1419 | net/appletalk/ddp.c | skb_trim(skb,min(origlen, rt->dev->hard_header_len + |
rt | 1426 | net/appletalk/ddp.c | if(aarp_send_ddp(rt->dev, skb, &ta, NULL)==-1) |
rt | 1470 | net/appletalk/ddp.c | struct atalk_route *rt; |
rt | 1518 | net/appletalk/ddp.c | rt=atrtr_find(&usat->sat_addr); |
rt | 1519 | net/appletalk/ddp.c | if(rt==NULL) |
rt | 1521 | net/appletalk/ddp.c | dev=rt->dev; |
rt | 1528 | net/appletalk/ddp.c | rt=atrtr_find(&at_hint); |
rt | 1529 | net/appletalk/ddp.c | if(rt==NULL) |
rt | 1531 | net/appletalk/ddp.c | dev=rt->dev; |
rt | 1589 | net/appletalk/ddp.c | if((!(rt->flags&RTF_GATEWAY))&&(!(dev->flags&IFF_LOOPBACK))) |
rt | 1623 | net/appletalk/ddp.c | if ( rt->flags & RTF_GATEWAY ) { |
rt | 1624 | net/appletalk/ddp.c | gsat.sat_addr = rt->gateway; |
rt | 1166 | net/ipv4/arp.c | struct rtable *rt; |
rt | 1224 | net/ipv4/arp.c | rt = ip_rt_route(ip, NULL, NULL); |
rt | 1225 | net/ipv4/arp.c | if (rt == NULL) |
rt | 1285 | net/ipv4/arp.c | entry->dev = rt->rt_dev; |
rt | 355 | net/ipv4/icmp.c | struct rtable *rt; |
rt | 395 | net/ipv4/icmp.c | rt = ip_rt_route(ip, NULL, NULL); |
rt | 396 | net/ipv4/icmp.c | if (!rt) |
rt | 398 | net/ipv4/icmp.c | if (rt->rt_gateway != source || |
rt | 214 | net/ipv4/ip.c | struct rtable *rt; |
rt | 231 | net/ipv4/ip.c | rt = ip_rt_local(daddr, NULL, &src); |
rt | 233 | net/ipv4/ip.c | rt = ip_rt_route(daddr, NULL, &src); |
rt | 234 | net/ipv4/ip.c | if (rt == NULL) |
rt | 240 | net/ipv4/ip.c | *dev = rt->rt_dev; |
rt | 247 | net/ipv4/ip.c | raddr = rt->rt_gateway; |
rt | 256 | net/ipv4/ip.c | rt = ip_rt_local(daddr, NULL, &src); |
rt | 258 | net/ipv4/ip.c | rt = ip_rt_route(daddr, NULL, &src); |
rt | 266 | net/ipv4/ip.c | raddr = (rt == NULL) ? 0 : rt->rt_gateway; |
rt | 1017 | net/ipv4/ip.c | struct rtable *rt; /* Route we use */ |
rt | 1083 | net/ipv4/ip.c | rt = ip_rt_route(target_addr, NULL, NULL); |
rt | 1084 | net/ipv4/ip.c | if (rt == NULL) |
rt | 1103 | net/ipv4/ip.c | raddr = rt->rt_gateway; |
rt | 1122 | net/ipv4/ip.c | rt = ip_rt_route(raddr, NULL, NULL); |
rt | 1123 | net/ipv4/ip.c | if (rt == NULL) |
rt | 1131 | net/ipv4/ip.c | if (rt->rt_gateway != 0) |
rt | 1132 | net/ipv4/ip.c | raddr = rt->rt_gateway; |
rt | 1141 | net/ipv4/ip.c | dev2 = rt->rt_dev; |
rt | 1149 | net/ipv4/ip.c | if (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) && (rt->rt_flags&RTF_MODIFIED)) |
rt | 2105 | net/ipv4/ip.c | struct rtable *rt; |
rt | 2127 | net/ipv4/ip.c | if((rt=ip_rt_route(mreq.imr_multiaddr.s_addr,NULL, &route_src))!=NULL) |
rt | 2129 | net/ipv4/ip.c | dev=rt->rt_dev; |
rt | 2130 | net/ipv4/ip.c | rt->rt_use--; |
rt | 2159 | net/ipv4/ip.c | struct rtable *rt; |
rt | 2179 | net/ipv4/ip.c | if((rt=ip_rt_route(mreq.imr_multiaddr.s_addr,NULL, &route_src))!=NULL) |
rt | 2181 | net/ipv4/ip.c | dev=rt->rt_dev; |
rt | 2182 | net/ipv4/ip.c | rt->rt_use--; |
rt | 2342 | net/ipv4/ip.c | struct rtable *rt; |
rt | 2360 | net/ipv4/ip.c | rt=NULL; |
rt | 2372 | net/ipv4/ip.c | rt = sk->ip_route_cache; |
rt | 2380 | net/ipv4/ip.c | if(!rt || sk->ip_route_stamp != rt_stamp || daddr!=sk->ip_route_daddr || sk->ip_route_local!=local || sk->saddr!=sk->ip_route_saddr) |
rt | 2383 | net/ipv4/ip.c | rt = ip_rt_local(daddr, NULL, &saddr); |
rt | 2385 | net/ipv4/ip.c | rt = ip_rt_route(daddr, NULL, &saddr); |
rt | 2390 | net/ipv4/ip.c | sk->ip_route_cache=rt; |
rt | 2394 | net/ipv4/ip.c | else if(rt) |
rt | 2402 | net/ipv4/ip.c | if(rt->rt_dev->header_cache && sk->ip_hcache_state!= -1) |
rt | 2405 | net/ipv4/ip.c | rt->rt_dev->header_cache(rt->rt_dev,sk,saddr,daddr); |
rt | 2412 | net/ipv4/ip.c | if (rt == NULL) |
rt | 2421 | net/ipv4/ip.c | dev=rt->rt_dev; |
rt | 2448 | net/ipv4/ip.c | skb->raddr=(rt&&rt->rt_gateway)?rt->rt_gateway:daddr; |
rt | 2571 | net/ipv4/ip.c | skb->raddr = (rt&&rt->rt_gateway) ? rt->rt_gateway : daddr; |
rt | 2667 | net/ipv4/ip.c | ip_loopback(rt->rt_dev,skb); |
rt | 2670 | net/ipv4/ip.c | struct ip_mc_list *imc=rt->rt_dev->ip_mc_list; |
rt | 2675 | net/ipv4/ip.c | ip_loopback(rt->rt_dev,skb); |
rt | 240 | net/ipv4/rarp.c | struct rtable *rt; |
rt | 279 | net/ipv4/rarp.c | rt = ip_rt_route(ip, NULL, NULL); |
rt | 280 | net/ipv4/rarp.c | if (rt == NULL) |
rt | 319 | net/ipv4/rarp.c | entry->dev = rt->rt_dev; |
rt | 187 | net/ipv4/route.c | struct rtable * rt; |
rt | 189 | net/ipv4/route.c | for (rt = rt_base ; ; rt = rt->rt_next) |
rt | 191 | net/ipv4/route.c | if (!rt) |
rt | 193 | net/ipv4/route.c | if ((gw ^ rt->rt_dst) & rt->rt_mask) |
rt | 199 | net/ipv4/route.c | if (rt->rt_flags & RTF_GATEWAY) |
rt | 201 | net/ipv4/route.c | return rt->rt_dev; |
rt | 216 | net/ipv4/route.c | struct rtable *r, *rt; |
rt | 275 | net/ipv4/route.c | rt = (struct rtable *) kmalloc(sizeof(struct rtable), GFP_ATOMIC); |
rt | 276 | net/ipv4/route.c | if (rt == NULL) |
rt | 280 | net/ipv4/route.c | memset(rt, 0, sizeof(struct rtable)); |
rt | 281 | net/ipv4/route.c | rt->rt_flags = flags | RTF_UP; |
rt | 282 | net/ipv4/route.c | rt->rt_dst = dst; |
rt | 283 | net/ipv4/route.c | rt->rt_dev = dev; |
rt | 284 | net/ipv4/route.c | rt->rt_gateway = gw; |
rt | 285 | net/ipv4/route.c | rt->rt_mask = mask; |
rt | 286 | net/ipv4/route.c | rt->rt_mss = dev->mtu - HEADER_SIZE; |
rt | 287 | net/ipv4/route.c | rt->rt_metric = metric; |
rt | 288 | net/ipv4/route.c | rt->rt_window = 0; /* Default is no clamping */ |
rt | 292 | net/ipv4/route.c | if(rt->rt_flags & RTF_MSS) |
rt | 293 | net/ipv4/route.c | rt->rt_mss = mtu; |
rt | 295 | net/ipv4/route.c | if(rt->rt_flags & RTF_WINDOW) |
rt | 296 | net/ipv4/route.c | rt->rt_window = window; |
rt | 297 | net/ipv4/route.c | if(rt->rt_flags & RTF_IRTT) |
rt | 298 | net/ipv4/route.c | rt->rt_irtt = irtt; |
rt | 339 | net/ipv4/route.c | rt->rt_next = r; |
rt | 340 | net/ipv4/route.c | *rp = rt; |
rt | 346 | net/ipv4/route.c | if ((rt->rt_dev->flags & IFF_LOOPBACK) && !rt_loopback) |
rt | 347 | net/ipv4/route.c | rt_loopback = rt; |
rt | 568 | net/ipv4/route.c | struct rtable *rt; |
rt | 570 | net/ipv4/route.c | for (rt = rt_base; rt != NULL || early_out ; rt = rt->rt_next) |
rt | 572 | net/ipv4/route.c | if (!((rt->rt_dst ^ daddr) & rt->rt_mask)) |
rt | 577 | net/ipv4/route.c | if (rt->rt_flags & RTF_GATEWAY) |
rt | 579 | net/ipv4/route.c | if ((rt->rt_dev->flags & IFF_BROADCAST) && |
rt | 580 | net/ipv4/route.c | (rt->rt_dev->pa_brdaddr == daddr)) |
rt | 584 | net/ipv4/route.c | if(rt->rt_flags&RTF_REJECT) |
rt | 588 | net/ipv4/route.c | *src_addr= rt->rt_dev->pa_addr; |
rt | 590 | net/ipv4/route.c | if (daddr == rt->rt_dev->pa_addr) { |
rt | 591 | net/ipv4/route.c | if ((rt = rt_loopback) == NULL) |
rt | 594 | net/ipv4/route.c | rt->rt_use++; |
rt | 595 | net/ipv4/route.c | return rt; |
rt | 602 | net/ipv4/route.c | struct rtable *rt; |
rt | 604 | net/ipv4/route.c | for (rt = rt_base; rt != NULL || early_out ; rt = rt->rt_next) |
rt | 609 | net/ipv4/route.c | if (rt->rt_flags&RTF_GATEWAY) |
rt | 612 | net/ipv4/route.c | if (!((rt->rt_dst ^ daddr) & rt->rt_mask)) |
rt | 618 | net/ipv4/route.c | if ((rt->rt_dev->flags & IFF_BROADCAST) && |
rt | 619 | net/ipv4/route.c | rt->rt_dev->pa_brdaddr == daddr) |
rt | 624 | net/ipv4/route.c | *src_addr= rt->rt_dev->pa_addr; |
rt | 626 | net/ipv4/route.c | if (daddr == rt->rt_dev->pa_addr) { |
rt | 627 | net/ipv4/route.c | if ((rt = rt_loopback) == NULL) |
rt | 630 | net/ipv4/route.c | rt->rt_use++; |
rt | 631 | net/ipv4/route.c | return rt; |
rt | 643 | net/ipv4/route.c | struct rtentry rt; |
rt | 654 | net/ipv4/route.c | memcpy_fromfs(&rt, arg, sizeof(struct rtentry)); |
rt | 655 | net/ipv4/route.c | return (cmd == SIOCDELRT) ? rt_kill(&rt) : rt_new(&rt); |
rt | 2646 | net/ipv4/tcp.c | struct rtable *rt; |
rt | 2781 | net/ipv4/tcp.c | rt=ip_rt_route(saddr, NULL,NULL); |
rt | 2783 | net/ipv4/tcp.c | if(rt!=NULL && (rt->rt_flags&RTF_WINDOW)) |
rt | 2784 | net/ipv4/tcp.c | newsk->window_clamp = rt->rt_window; |
rt | 2790 | net/ipv4/tcp.c | else if(rt!=NULL && (rt->rt_flags&RTF_MSS)) |
rt | 2791 | net/ipv4/tcp.c | newsk->mtu = rt->rt_mss - HEADER_SIZE; |
rt | 4226 | net/ipv4/tcp.c | struct rtable *rt; |
rt | 4277 | net/ipv4/tcp.c | rt=ip_rt_route(sk->daddr, NULL, NULL); |
rt | 4311 | net/ipv4/tcp.c | if(rt!=NULL && (rt->rt_flags&RTF_WINDOW)) |
rt | 4312 | net/ipv4/tcp.c | sk->window_clamp=rt->rt_window; |
rt | 4318 | net/ipv4/tcp.c | else if(rt!=NULL && (rt->rt_flags&RTF_MTU)) |
rt | 4319 | net/ipv4/tcp.c | sk->mtu = rt->rt_mss; |
rt | 4358 | net/ipv4/tcp.c | if(rt&&rt->rt_flags&RTF_IRTT) |
rt | 4359 | net/ipv4/tcp.c | sk->rto = rt->rt_irtt; |
rt | 258 | net/ipv4/udp.c | unsigned char *from, int len, int rt) |
rt | 274 | net/ipv4/udp.c | sin->sin_addr.s_addr, rt, IPPROTO_UDP); |
rt | 277 | net/ipv4/udp.c | sin->sin_addr.s_addr, rt, IPPROTO_UDP); |
rt | 471 | net/ipv4/udp.c | struct rtable *rt; |
rt | 484 | net/ipv4/udp.c | rt=(sk->localroute?ip_rt_local:ip_rt_route)(usin->sin_addr.s_addr, NULL, &sa); |
rt | 485 | net/ipv4/udp.c | if(rt==NULL) |
rt | 492 | net/ipv4/udp.c | sk->ip_route_cache = rt; |
rt | 907 | net/ipx/af_ipx.c | ipx_route *rt; |
rt | 910 | net/ipx/af_ipx.c | rt = ipxrtr_lookup(network); |
rt | 911 | net/ipx/af_ipx.c | if (rt==NULL) { |
rt | 912 | net/ipx/af_ipx.c | rt=(ipx_route *)kmalloc(sizeof(ipx_route),GFP_ATOMIC); |
rt | 913 | net/ipx/af_ipx.c | if(rt==NULL) |
rt | 915 | net/ipx/af_ipx.c | rt->ir_next=ipx_routes; |
rt | 916 | net/ipx/af_ipx.c | ipx_routes=rt; |
rt | 919 | net/ipx/af_ipx.c | rt->ir_net = network; |
rt | 920 | net/ipx/af_ipx.c | rt->ir_intrfc = intrfc; |
rt | 922 | net/ipx/af_ipx.c | memset(rt->ir_router_node, '\0', IPX_NODE_LEN); |
rt | 923 | net/ipx/af_ipx.c | rt->ir_routed = 0; |
rt | 925 | net/ipx/af_ipx.c | memcpy(rt->ir_router_node, node, IPX_NODE_LEN); |
rt | 926 | net/ipx/af_ipx.c | rt->ir_routed=1; |
rt | 990 | net/ipx/af_ipx.c | ipx_route *rt = NULL; |
rt | 997 | net/ipx/af_ipx.c | rt = ipxrtr_lookup(usipx->sipx_network); |
rt | 998 | net/ipx/af_ipx.c | if (rt==NULL) { |
rt | 1001 | net/ipx/af_ipx.c | intrfc = rt->ir_intrfc; |
rt | 1034 | net/ipx/af_ipx.c | return ipxitf_send(intrfc, skb, (rt && rt->ir_routed) ? |
rt | 1035 | net/ipx/af_ipx.c | rt->ir_router_node : ipx->ipx_dest.node); |
rt | 1064 | net/ipx/af_ipx.c | struct rtentry rt; /* Use these to behave like 'other' stacks */ |
rt | 1067 | net/ipx/af_ipx.c | err=verify_area(VERIFY_READ,arg,sizeof(rt)); |
rt | 1071 | net/ipx/af_ipx.c | memcpy_fromfs(&rt,arg,sizeof(rt)); |
rt | 1073 | net/ipx/af_ipx.c | sg=(struct sockaddr_ipx *)&rt.rt_gateway; |
rt | 1074 | net/ipx/af_ipx.c | st=(struct sockaddr_ipx *)&rt.rt_dst; |
rt | 1076 | net/ipx/af_ipx.c | if(!(rt.rt_flags&RTF_GATEWAY)) |
rt | 1222 | net/ipx/af_ipx.c | ipx_route *rt; |
rt | 1229 | net/ipx/af_ipx.c | for (rt = ipx_routes; rt != NULL; rt = rt->ir_next) |
rt | 1231 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%08lX ", ntohl(rt->ir_net)); |
rt | 1232 | net/ipx/af_ipx.c | if (rt->ir_routed) { |
rt | 1234 | net/ipx/af_ipx.c | ntohl(rt->ir_intrfc->if_netnum), |
rt | 1235 | net/ipx/af_ipx.c | rt->ir_router_node[0], rt->ir_router_node[1], |
rt | 1236 | net/ipx/af_ipx.c | rt->ir_router_node[2], rt->ir_router_node[3], |
rt | 1237 | net/ipx/af_ipx.c | rt->ir_router_node[4], rt->ir_router_node[5]); |