tag | line | file | source code |
rt | 197 | kernel/module.c | struct mod_routines rt; |
rt | 222 | kernel/module.c | memcpy_fromfs(&rt, routines, sizeof rt); |
rt | 231 | kernel/module.c | (unsigned long) rt.init, (unsigned long) rt.cleanup)); |
rt | 232 | kernel/module.c | mp->cleanup = rt.cleanup; |
rt | 309 | kernel/module.c | if ((*rt.init)() != 0) { |
rt | 524 | net/appletalk/ddp.c | struct atalk_route *rt; |
rt | 547 | net/appletalk/ddp.c | for(rt=atalk_router_list;rt!=NULL;rt=rt->next) |
rt | 549 | net/appletalk/ddp.c | if(r->rt_flags != rt->flags) |
rt | 552 | net/appletalk/ddp.c | if(ta->sat_addr.s_net == rt->target.s_net) { |
rt | 553 | net/appletalk/ddp.c | if(!(rt->flags&RTF_HOST)) |
rt | 555 | net/appletalk/ddp.c | if(ta->sat_addr.s_node == rt->target.s_node) |
rt | 577 | net/appletalk/ddp.c | if(rt==NULL) |
rt | 579 | net/appletalk/ddp.c | rt=(struct atalk_route *)kmalloc(sizeof(struct atalk_route), GFP_KERNEL); |
rt | 580 | net/appletalk/ddp.c | if(rt==NULL) |
rt | 583 | net/appletalk/ddp.c | rt->next=atalk_router_list; |
rt | 584 | net/appletalk/ddp.c | atalk_router_list=rt; |
rt | 590 | net/appletalk/ddp.c | rt->target=ta->sat_addr; |
rt | 591 | net/appletalk/ddp.c | rt->dev=devhint; |
rt | 592 | net/appletalk/ddp.c | rt->flags=r->rt_flags; |
rt | 593 | net/appletalk/ddp.c | rt->gateway=ga->sat_addr; |
rt | 798 | net/appletalk/ddp.c | struct rtentry rt; |
rt | 800 | net/appletalk/ddp.c | err=verify_area(VERIFY_READ, arg, sizeof(rt)); |
rt | 803 | net/appletalk/ddp.c | memcpy_fromfs(&rt,arg,sizeof(rt)); |
rt | 808 | net/appletalk/ddp.c | if(rt.rt_dst.sa_family!=AF_APPLETALK) |
rt | 810 | net/appletalk/ddp.c | return atrtr_delete(&((struct sockaddr_at *)&rt.rt_dst)->sat_addr); |
rt | 812 | net/appletalk/ddp.c | return atrtr_create(&rt, NULL); |
rt | 855 | net/appletalk/ddp.c | struct atalk_route *rt; |
rt | 863 | net/appletalk/ddp.c | rt=&atrtr_default; |
rt | 865 | net/appletalk/ddp.c | ntohs(rt->gateway.s_net), rt->gateway.s_node, rt->flags, |
rt | 866 | net/appletalk/ddp.c | rt->dev->name); |
rt | 868 | net/appletalk/ddp.c | for (rt = atalk_router_list; rt != NULL; rt = rt->next) |
rt | 871 | net/appletalk/ddp.c | ntohs(rt->target.s_net),rt->target.s_node, |
rt | 872 | net/appletalk/ddp.c | ntohs(rt->gateway.s_net), rt->gateway.s_node, rt->flags, |
rt | 873 | net/appletalk/ddp.c | rt->dev->name); |
rt | 1406 | net/appletalk/ddp.c | struct atalk_route *rt; |
rt | 1421 | net/appletalk/ddp.c | rt=atrtr_find(&ta); |
rt | 1422 | net/appletalk/ddp.c | if(rt==NULL || ddp->deh_hops==15) |
rt | 1430 | net/appletalk/ddp.c | skb_trim(skb,min(origlen, rt->dev->hard_header_len + |
rt | 1437 | net/appletalk/ddp.c | if(aarp_send_ddp(rt->dev, skb, &ta, NULL)==-1) |
rt | 1480 | net/appletalk/ddp.c | struct atalk_route *rt; |
rt | 1528 | net/appletalk/ddp.c | rt=atrtr_find(&usat->sat_addr); |
rt | 1529 | net/appletalk/ddp.c | if(rt==NULL) |
rt | 1531 | net/appletalk/ddp.c | dev=rt->dev; |
rt | 1538 | net/appletalk/ddp.c | rt=atrtr_find(&at_hint); |
rt | 1539 | net/appletalk/ddp.c | if(rt==NULL) |
rt | 1541 | net/appletalk/ddp.c | dev=rt->dev; |
rt | 1599 | net/appletalk/ddp.c | if((!(rt->flags&RTF_GATEWAY))&&(!(dev->flags&IFF_LOOPBACK))) |
rt | 1633 | net/appletalk/ddp.c | if ( rt->flags & RTF_GATEWAY ) { |
rt | 1634 | net/appletalk/ddp.c | gsat.sat_addr = rt->gateway; |
rt | 1222 | net/ipv4/arp.c | struct rtable *rt; |
rt | 1280 | net/ipv4/arp.c | rt = ip_rt_route(ip, NULL, NULL); |
rt | 1281 | net/ipv4/arp.c | if (rt == NULL) |
rt | 1341 | net/ipv4/arp.c | entry->dev = rt->rt_dev; |
rt | 428 | net/ipv4/icmp.c | struct rtable *rt; |
rt | 468 | net/ipv4/icmp.c | rt = ip_rt_route(ip, NULL, NULL); |
rt | 469 | net/ipv4/icmp.c | if (!rt) |
rt | 471 | net/ipv4/icmp.c | if (rt->rt_gateway != source || |
rt | 245 | net/ipv4/ip.c | struct rtable *rt; |
rt | 262 | net/ipv4/ip.c | rt = ip_rt_local(daddr, NULL, &src); |
rt | 264 | net/ipv4/ip.c | rt = ip_rt_route(daddr, NULL, &src); |
rt | 265 | net/ipv4/ip.c | if (rt == NULL) |
rt | 271 | net/ipv4/ip.c | *dev = rt->rt_dev; |
rt | 278 | net/ipv4/ip.c | raddr = rt->rt_gateway; |
rt | 287 | net/ipv4/ip.c | rt = ip_rt_local(daddr, NULL, &src); |
rt | 289 | net/ipv4/ip.c | rt = ip_rt_route(daddr, NULL, &src); |
rt | 297 | net/ipv4/ip.c | raddr = (rt == NULL) ? 0 : rt->rt_gateway; |
rt | 1055 | net/ipv4/ip.c | struct rtable *rt; /* Route we use */ |
rt | 1124 | net/ipv4/ip.c | rt = ip_rt_route(target_addr, NULL, NULL); |
rt | 1125 | net/ipv4/ip.c | if (rt == NULL) |
rt | 1144 | net/ipv4/ip.c | raddr = rt->rt_gateway; |
rt | 1163 | net/ipv4/ip.c | rt = ip_rt_route(raddr, NULL, NULL); |
rt | 1164 | net/ipv4/ip.c | if (rt == NULL) |
rt | 1172 | net/ipv4/ip.c | if (rt->rt_gateway != 0) |
rt | 1173 | net/ipv4/ip.c | raddr = rt->rt_gateway; |
rt | 1182 | net/ipv4/ip.c | dev2 = rt->rt_dev; |
rt | 1190 | net/ipv4/ip.c | if (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) && (rt->rt_flags&RTF_MODIFIED)) |
rt | 2204 | net/ipv4/ip.c | struct rtable *rt; |
rt | 2226 | net/ipv4/ip.c | if((rt=ip_rt_route(mreq.imr_multiaddr.s_addr,NULL, &route_src))!=NULL) |
rt | 2228 | net/ipv4/ip.c | dev=rt->rt_dev; |
rt | 2229 | net/ipv4/ip.c | rt->rt_use--; |
rt | 2258 | net/ipv4/ip.c | struct rtable *rt; |
rt | 2278 | net/ipv4/ip.c | if((rt=ip_rt_route(mreq.imr_multiaddr.s_addr,NULL, &route_src))!=NULL) |
rt | 2280 | net/ipv4/ip.c | dev=rt->rt_dev; |
rt | 2281 | net/ipv4/ip.c | rt->rt_use--; |
rt | 2451 | net/ipv4/ip.c | struct rtable *rt; |
rt | 2469 | net/ipv4/ip.c | rt=NULL; |
rt | 2485 | net/ipv4/ip.c | rt = sk->ip_route_cache; |
rt | 2493 | 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 | 2496 | net/ipv4/ip.c | rt = ip_rt_local(daddr, NULL, &saddr); |
rt | 2498 | net/ipv4/ip.c | rt = ip_rt_route(daddr, NULL, &saddr); |
rt | 2503 | net/ipv4/ip.c | sk->ip_route_cache=rt; |
rt | 2507 | net/ipv4/ip.c | else if(rt) |
rt | 2515 | net/ipv4/ip.c | if(rt->rt_dev->header_cache && sk->ip_hcache_state!= -1) |
rt | 2518 | net/ipv4/ip.c | rt->rt_dev->header_cache(rt->rt_dev,sk,saddr,daddr); |
rt | 2525 | net/ipv4/ip.c | if (rt == NULL) |
rt | 2534 | net/ipv4/ip.c | dev=rt->rt_dev; |
rt | 2564 | net/ipv4/ip.c | skb->raddr=(rt&&rt->rt_gateway)?rt->rt_gateway:daddr; |
rt | 2710 | net/ipv4/ip.c | skb->raddr = (rt&&rt->rt_gateway) ? rt->rt_gateway : daddr; |
rt | 2816 | net/ipv4/ip.c | ip_loopback(rt?rt->rt_dev:dev,skb); |
rt | 2819 | net/ipv4/ip.c | struct ip_mc_list *imc=rt?rt->rt_dev->ip_mc_list:dev->ip_mc_list; |
rt | 2824 | net/ipv4/ip.c | ip_loopback(rt?rt->rt_dev:dev,skb); |
rt | 295 | net/ipv4/rarp.c | struct rtable *rt; |
rt | 334 | net/ipv4/rarp.c | rt = ip_rt_route(ip, NULL, NULL); |
rt | 335 | net/ipv4/rarp.c | if (rt == NULL) |
rt | 374 | net/ipv4/rarp.c | entry->dev = rt->rt_dev; |
rt | 574 | net/ipv4/rarp.c | struct rarp_table *rt, *rt_next; |
rt | 579 | net/ipv4/rarp.c | rt = rarp_tables; |
rt | 583 | net/ipv4/rarp.c | for ( ; rt != NULL; rt = rt_next) { |
rt | 584 | net/ipv4/rarp.c | rt_next = rt->next; |
rt | 585 | net/ipv4/rarp.c | rarp_release_entry(rt); |
rt | 198 | net/ipv4/route.c | struct rtable * rt; |
rt | 200 | net/ipv4/route.c | for (rt = rt_base ; ; rt = rt->rt_next) |
rt | 202 | net/ipv4/route.c | if (!rt) |
rt | 204 | net/ipv4/route.c | if ((gw ^ rt->rt_dst) & rt->rt_mask) |
rt | 210 | net/ipv4/route.c | if (rt->rt_flags & RTF_GATEWAY) |
rt | 212 | net/ipv4/route.c | return rt->rt_dev; |
rt | 228 | net/ipv4/route.c | struct rtable *r, *rt; |
rt | 288 | net/ipv4/route.c | rt = (struct rtable *) kmalloc(sizeof(struct rtable), GFP_ATOMIC); |
rt | 289 | net/ipv4/route.c | if (rt == NULL) |
rt | 293 | net/ipv4/route.c | memset(rt, 0, sizeof(struct rtable)); |
rt | 294 | net/ipv4/route.c | rt->rt_flags = flags | RTF_UP; |
rt | 295 | net/ipv4/route.c | rt->rt_dst = dst; |
rt | 296 | net/ipv4/route.c | rt->rt_dev = dev; |
rt | 297 | net/ipv4/route.c | rt->rt_gateway = gw; |
rt | 298 | net/ipv4/route.c | rt->rt_mask = mask; |
rt | 299 | net/ipv4/route.c | rt->rt_mss = dev->mtu - HEADER_SIZE; |
rt | 300 | net/ipv4/route.c | rt->rt_metric = metric; |
rt | 301 | net/ipv4/route.c | rt->rt_window = 0; /* Default is no clamping */ |
rt | 305 | net/ipv4/route.c | if(rt->rt_flags & RTF_MSS) |
rt | 306 | net/ipv4/route.c | rt->rt_mss = mtu; |
rt | 308 | net/ipv4/route.c | if(rt->rt_flags & RTF_WINDOW) |
rt | 309 | net/ipv4/route.c | rt->rt_window = window; |
rt | 310 | net/ipv4/route.c | if(rt->rt_flags & RTF_IRTT) |
rt | 311 | net/ipv4/route.c | rt->rt_irtt = irtt; |
rt | 372 | net/ipv4/route.c | rt->rt_next = r; |
rt | 373 | net/ipv4/route.c | *rp = rt; |
rt | 379 | net/ipv4/route.c | if ((rt->rt_dev->flags & IFF_LOOPBACK) && !rt_loopback) |
rt | 380 | net/ipv4/route.c | rt_loopback = rt; |
rt | 611 | net/ipv4/route.c | struct rtable *rt; |
rt | 613 | net/ipv4/route.c | for (rt = rt_base; rt != NULL || early_out ; rt = rt->rt_next) |
rt | 615 | net/ipv4/route.c | if (!((rt->rt_dst ^ daddr) & rt->rt_mask)) |
rt | 620 | net/ipv4/route.c | if (rt->rt_flags & RTF_GATEWAY) |
rt | 622 | net/ipv4/route.c | if ((rt->rt_dev->flags & IFF_BROADCAST) && |
rt | 623 | net/ipv4/route.c | (rt->rt_dev->pa_brdaddr == daddr)) |
rt | 627 | net/ipv4/route.c | if(rt->rt_flags&RTF_REJECT) |
rt | 631 | net/ipv4/route.c | *src_addr= rt->rt_dev->pa_addr; |
rt | 633 | net/ipv4/route.c | if (daddr == rt->rt_dev->pa_addr) { |
rt | 634 | net/ipv4/route.c | if ((rt = rt_loopback) == NULL) |
rt | 637 | net/ipv4/route.c | rt->rt_use++; |
rt | 638 | net/ipv4/route.c | return rt; |
rt | 645 | net/ipv4/route.c | struct rtable *rt; |
rt | 647 | net/ipv4/route.c | for (rt = rt_base; rt != NULL || early_out ; rt = rt->rt_next) |
rt | 652 | net/ipv4/route.c | if (rt->rt_flags&RTF_GATEWAY) |
rt | 655 | net/ipv4/route.c | if (!((rt->rt_dst ^ daddr) & rt->rt_mask)) |
rt | 661 | net/ipv4/route.c | if ((rt->rt_dev->flags & IFF_BROADCAST) && |
rt | 662 | net/ipv4/route.c | rt->rt_dev->pa_brdaddr == daddr) |
rt | 667 | net/ipv4/route.c | *src_addr= rt->rt_dev->pa_addr; |
rt | 669 | net/ipv4/route.c | if (daddr == rt->rt_dev->pa_addr) { |
rt | 670 | net/ipv4/route.c | if ((rt = rt_loopback) == NULL) |
rt | 673 | net/ipv4/route.c | rt->rt_use++; |
rt | 674 | net/ipv4/route.c | return rt; |
rt | 686 | net/ipv4/route.c | struct rtentry rt; |
rt | 697 | net/ipv4/route.c | memcpy_fromfs(&rt, arg, sizeof(struct rtentry)); |
rt | 698 | net/ipv4/route.c | return (cmd == SIOCDELRT) ? rt_kill(&rt) : rt_new(&rt); |
rt | 634 | net/ipv4/tcp.c | struct rtable *rt; |
rt | 681 | net/ipv4/tcp.c | rt=ip_rt_local(iph->daddr,NULL,NULL); |
rt | 683 | net/ipv4/tcp.c | rt=ip_rt_route(iph->daddr,NULL,NULL); |
rt | 685 | net/ipv4/tcp.c | if(rt==NULL) /* Deep poo */ |
rt | 695 | net/ipv4/tcp.c | dev=rt->rt_dev; |
rt | 696 | net/ipv4/tcp.c | skb->raddr=rt->rt_gateway; |
rt | 2880 | net/ipv4/tcp.c | struct rtable *rt; |
rt | 3015 | net/ipv4/tcp.c | rt=ip_rt_route(saddr, NULL,NULL); |
rt | 3017 | net/ipv4/tcp.c | if(rt!=NULL && (rt->rt_flags&RTF_WINDOW)) |
rt | 3018 | net/ipv4/tcp.c | newsk->window_clamp = rt->rt_window; |
rt | 3024 | net/ipv4/tcp.c | else if(rt!=NULL && (rt->rt_flags&RTF_MSS)) |
rt | 3025 | net/ipv4/tcp.c | newsk->mtu = rt->rt_mss - sizeof(struct iphdr) - sizeof(struct tcphdr); |
rt | 4459 | net/ipv4/tcp.c | struct rtable *rt; |
rt | 4510 | net/ipv4/tcp.c | rt=ip_rt_route(sk->daddr, NULL, NULL); |
rt | 4544 | net/ipv4/tcp.c | if(rt!=NULL && (rt->rt_flags&RTF_WINDOW)) |
rt | 4545 | net/ipv4/tcp.c | sk->window_clamp=rt->rt_window; |
rt | 4551 | net/ipv4/tcp.c | else if(rt!=NULL && (rt->rt_flags&RTF_MSS)) |
rt | 4552 | net/ipv4/tcp.c | sk->mtu = rt->rt_mss; |
rt | 4591 | net/ipv4/tcp.c | if(rt&&rt->rt_flags&RTF_IRTT) |
rt | 4592 | net/ipv4/tcp.c | sk->rto = rt->rt_irtt; |
rt | 294 | net/ipv4/udp.c | const unsigned char *from, int len, int rt) |
rt | 321 | net/ipv4/udp.c | sin->sin_addr.s_addr, rt, IPPROTO_UDP); |
rt | 324 | net/ipv4/udp.c | sin->sin_addr.s_addr, rt, IPPROTO_UDP); |
rt | 528 | net/ipv4/udp.c | struct rtable *rt; |
rt | 541 | net/ipv4/udp.c | rt=(sk->localroute?ip_rt_local:ip_rt_route)((__u32)usin->sin_addr.s_addr, NULL, &sa); |
rt | 542 | net/ipv4/udp.c | if(rt==NULL) |
rt | 549 | net/ipv4/udp.c | sk->ip_route_cache = rt; |
rt | 916 | net/ipx/af_ipx.c | ipx_route *rt; |
rt | 919 | net/ipx/af_ipx.c | rt = ipxrtr_lookup(network); |
rt | 920 | net/ipx/af_ipx.c | if (rt==NULL) { |
rt | 921 | net/ipx/af_ipx.c | rt=(ipx_route *)kmalloc(sizeof(ipx_route),GFP_ATOMIC); |
rt | 922 | net/ipx/af_ipx.c | if(rt==NULL) |
rt | 924 | net/ipx/af_ipx.c | rt->ir_next=ipx_routes; |
rt | 925 | net/ipx/af_ipx.c | ipx_routes=rt; |
rt | 928 | net/ipx/af_ipx.c | rt->ir_net = network; |
rt | 929 | net/ipx/af_ipx.c | rt->ir_intrfc = intrfc; |
rt | 931 | net/ipx/af_ipx.c | memset(rt->ir_router_node, '\0', IPX_NODE_LEN); |
rt | 932 | net/ipx/af_ipx.c | rt->ir_routed = 0; |
rt | 934 | net/ipx/af_ipx.c | memcpy(rt->ir_router_node, node, IPX_NODE_LEN); |
rt | 935 | net/ipx/af_ipx.c | rt->ir_routed=1; |
rt | 999 | net/ipx/af_ipx.c | ipx_route *rt = NULL; |
rt | 1006 | net/ipx/af_ipx.c | rt = ipxrtr_lookup(usipx->sipx_network); |
rt | 1007 | net/ipx/af_ipx.c | if (rt==NULL) { |
rt | 1010 | net/ipx/af_ipx.c | intrfc = rt->ir_intrfc; |
rt | 1043 | net/ipx/af_ipx.c | return ipxitf_send(intrfc, skb, (rt && rt->ir_routed) ? |
rt | 1044 | net/ipx/af_ipx.c | rt->ir_router_node : ipx->ipx_dest.node); |
rt | 1073 | net/ipx/af_ipx.c | struct rtentry rt; /* Use these to behave like 'other' stacks */ |
rt | 1076 | net/ipx/af_ipx.c | err=verify_area(VERIFY_READ,arg,sizeof(rt)); |
rt | 1080 | net/ipx/af_ipx.c | memcpy_fromfs(&rt,arg,sizeof(rt)); |
rt | 1082 | net/ipx/af_ipx.c | sg=(struct sockaddr_ipx *)&rt.rt_gateway; |
rt | 1083 | net/ipx/af_ipx.c | st=(struct sockaddr_ipx *)&rt.rt_dst; |
rt | 1085 | net/ipx/af_ipx.c | if(!(rt.rt_flags&RTF_GATEWAY)) |
rt | 1232 | net/ipx/af_ipx.c | ipx_route *rt; |
rt | 1239 | net/ipx/af_ipx.c | for (rt = ipx_routes; rt != NULL; rt = rt->ir_next) |
rt | 1241 | net/ipx/af_ipx.c | len += sprintf (buffer+len,"%08lX ", ntohl(rt->ir_net)); |
rt | 1242 | net/ipx/af_ipx.c | if (rt->ir_routed) { |
rt | 1244 | net/ipx/af_ipx.c | ntohl(rt->ir_intrfc->if_netnum), |
rt | 1245 | net/ipx/af_ipx.c | rt->ir_router_node[0], rt->ir_router_node[1], |
rt | 1246 | net/ipx/af_ipx.c | rt->ir_router_node[2], rt->ir_router_node[3], |
rt | 1247 | net/ipx/af_ipx.c | rt->ir_router_node[4], rt->ir_router_node[5]); |