| 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 | 211 | net/ipv4/ip.c | struct rtable *rt; |
| rt | 228 | net/ipv4/ip.c | rt = ip_rt_local(daddr, NULL, &src); |
| rt | 230 | net/ipv4/ip.c | rt = ip_rt_route(daddr, NULL, &src); |
| rt | 231 | net/ipv4/ip.c | if (rt == NULL) |
| rt | 237 | net/ipv4/ip.c | *dev = rt->rt_dev; |
| rt | 244 | net/ipv4/ip.c | raddr = rt->rt_gateway; |
| rt | 253 | net/ipv4/ip.c | rt = ip_rt_local(daddr, NULL, &src); |
| rt | 255 | net/ipv4/ip.c | rt = ip_rt_route(daddr, NULL, &src); |
| rt | 263 | net/ipv4/ip.c | raddr = (rt == NULL) ? 0 : rt->rt_gateway; |
| rt | 1014 | net/ipv4/ip.c | struct rtable *rt; /* Route we use */ |
| rt | 1070 | net/ipv4/ip.c | rt = ip_rt_route(target_addr, NULL, NULL); |
| rt | 1071 | net/ipv4/ip.c | if (rt == NULL) |
| rt | 1090 | net/ipv4/ip.c | raddr = rt->rt_gateway; |
| rt | 1110 | net/ipv4/ip.c | rt = ip_rt_route(raddr, NULL, NULL); |
| rt | 1111 | net/ipv4/ip.c | if (rt == NULL) |
| rt | 1119 | net/ipv4/ip.c | if (rt->rt_gateway != 0) |
| rt | 1120 | net/ipv4/ip.c | raddr = rt->rt_gateway; |
| rt | 1129 | net/ipv4/ip.c | dev2 = rt->rt_dev; |
| rt | 1137 | net/ipv4/ip.c | if (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) && rt->rt_flags&RTF_MODIFIED) |
| rt | 2090 | net/ipv4/ip.c | struct rtable *rt; |
| rt | 2112 | net/ipv4/ip.c | if((rt=ip_rt_route(mreq.imr_multiaddr.s_addr,NULL, &route_src))!=NULL) |
| rt | 2114 | net/ipv4/ip.c | dev=rt->rt_dev; |
| rt | 2115 | net/ipv4/ip.c | rt->rt_use--; |
| rt | 2144 | net/ipv4/ip.c | struct rtable *rt; |
| rt | 2164 | net/ipv4/ip.c | if((rt=ip_rt_route(mreq.imr_multiaddr.s_addr,NULL, &route_src))!=NULL) |
| rt | 2166 | net/ipv4/ip.c | dev=rt->rt_dev; |
| rt | 2167 | net/ipv4/ip.c | rt->rt_use--; |
| rt | 2327 | net/ipv4/ip.c | struct rtable *rt; |
| rt | 2343 | net/ipv4/ip.c | rt=NULL; |
| rt | 2355 | net/ipv4/ip.c | rt = sk->ip_route_cache; |
| rt | 2363 | 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 | 2366 | net/ipv4/ip.c | rt = ip_rt_local(daddr, NULL, &saddr); |
| rt | 2368 | net/ipv4/ip.c | rt = ip_rt_route(daddr, NULL, &saddr); |
| rt | 2373 | net/ipv4/ip.c | sk->ip_route_cache=rt; |
| rt | 2377 | net/ipv4/ip.c | else if(rt) |
| rt | 2385 | net/ipv4/ip.c | if(rt->rt_dev->header_cache && sk->ip_hcache_state!= -1) |
| rt | 2388 | net/ipv4/ip.c | rt->rt_dev->header_cache(rt->rt_dev,sk,saddr,daddr); |
| rt | 2395 | net/ipv4/ip.c | if (rt == NULL) |
| rt | 2404 | net/ipv4/ip.c | dev=rt->rt_dev; |
| rt | 2491 | net/ipv4/ip.c | skb->raddr = (rt&&rt->rt_gateway) ? rt->rt_gateway : daddr; |
| rt | 2587 | net/ipv4/ip.c | ip_loopback(rt->rt_dev,skb); |
| rt | 2590 | net/ipv4/ip.c | struct ip_mc_list *imc=rt->rt_dev->ip_mc_list; |
| rt | 2595 | 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 | 186 | net/ipv4/route.c | struct rtable * rt; |
| rt | 188 | net/ipv4/route.c | for (rt = rt_base ; ; rt = rt->rt_next) |
| rt | 190 | net/ipv4/route.c | if (!rt) |
| rt | 192 | net/ipv4/route.c | if ((gw ^ rt->rt_dst) & rt->rt_mask) |
| rt | 198 | net/ipv4/route.c | if (rt->rt_flags & RTF_GATEWAY) |
| rt | 200 | net/ipv4/route.c | return rt->rt_dev; |
| rt | 215 | net/ipv4/route.c | struct rtable *r, *rt; |
| rt | 274 | net/ipv4/route.c | rt = (struct rtable *) kmalloc(sizeof(struct rtable), GFP_ATOMIC); |
| rt | 275 | net/ipv4/route.c | if (rt == NULL) |
| rt | 279 | net/ipv4/route.c | memset(rt, 0, sizeof(struct rtable)); |
| rt | 280 | net/ipv4/route.c | rt->rt_flags = flags | RTF_UP; |
| rt | 281 | net/ipv4/route.c | rt->rt_dst = dst; |
| rt | 282 | net/ipv4/route.c | rt->rt_dev = dev; |
| rt | 283 | net/ipv4/route.c | rt->rt_gateway = gw; |
| rt | 284 | net/ipv4/route.c | rt->rt_mask = mask; |
| rt | 285 | net/ipv4/route.c | rt->rt_mss = dev->mtu - HEADER_SIZE; |
| rt | 286 | net/ipv4/route.c | rt->rt_metric = metric; |
| rt | 287 | net/ipv4/route.c | rt->rt_window = 0; /* Default is no clamping */ |
| rt | 291 | net/ipv4/route.c | if(rt->rt_flags & RTF_MSS) |
| rt | 292 | net/ipv4/route.c | rt->rt_mss = mtu; |
| rt | 294 | net/ipv4/route.c | if(rt->rt_flags & RTF_WINDOW) |
| rt | 295 | net/ipv4/route.c | rt->rt_window = window; |
| rt | 296 | net/ipv4/route.c | if(rt->rt_flags & RTF_IRTT) |
| rt | 297 | 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 | 566 | net/ipv4/route.c | struct rtable *rt; |
| rt | 568 | net/ipv4/route.c | for (rt = rt_base; rt != NULL || early_out ; rt = rt->rt_next) |
| rt | 570 | net/ipv4/route.c | if (!((rt->rt_dst ^ daddr) & rt->rt_mask)) |
| rt | 575 | net/ipv4/route.c | if (rt->rt_flags & RTF_GATEWAY) |
| rt | 577 | net/ipv4/route.c | if ((rt->rt_dev->flags & IFF_BROADCAST) && |
| rt | 578 | net/ipv4/route.c | (rt->rt_dev->pa_brdaddr == daddr)) |
| rt | 582 | net/ipv4/route.c | if(rt->rt_flags&RTF_REJECT) |
| rt | 586 | net/ipv4/route.c | *src_addr= rt->rt_dev->pa_addr; |
| rt | 588 | net/ipv4/route.c | if (daddr == rt->rt_dev->pa_addr) { |
| rt | 589 | net/ipv4/route.c | if ((rt = rt_loopback) == NULL) |
| rt | 592 | net/ipv4/route.c | rt->rt_use++; |
| rt | 593 | net/ipv4/route.c | return rt; |
| rt | 600 | net/ipv4/route.c | struct rtable *rt; |
| rt | 602 | net/ipv4/route.c | for (rt = rt_base; rt != NULL || early_out ; rt = rt->rt_next) |
| rt | 607 | net/ipv4/route.c | if (rt->rt_flags&RTF_GATEWAY) |
| rt | 610 | net/ipv4/route.c | if (!((rt->rt_dst ^ daddr) & rt->rt_mask)) |
| rt | 616 | net/ipv4/route.c | if ((rt->rt_dev->flags & IFF_BROADCAST) && |
| rt | 617 | net/ipv4/route.c | rt->rt_dev->pa_brdaddr == daddr) |
| rt | 622 | net/ipv4/route.c | *src_addr= rt->rt_dev->pa_addr; |
| rt | 624 | net/ipv4/route.c | if (daddr == rt->rt_dev->pa_addr) { |
| rt | 625 | net/ipv4/route.c | if ((rt = rt_loopback) == NULL) |
| rt | 628 | net/ipv4/route.c | rt->rt_use++; |
| rt | 629 | net/ipv4/route.c | return rt; |
| rt | 641 | net/ipv4/route.c | struct rtentry rt; |
| rt | 652 | net/ipv4/route.c | memcpy_fromfs(&rt, arg, sizeof(struct rtentry)); |
| rt | 653 | 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 | 256 | net/ipv4/udp.c | unsigned char *from, int len, int rt) |
| rt | 272 | net/ipv4/udp.c | sin->sin_addr.s_addr, rt, IPPROTO_UDP); |
| rt | 275 | net/ipv4/udp.c | sin->sin_addr.s_addr, rt, IPPROTO_UDP); |
| rt | 466 | net/ipv4/udp.c | struct rtable *rt; |
| rt | 479 | net/ipv4/udp.c | rt=(sk->localroute?ip_rt_local:ip_rt_route)(usin->sin_addr.s_addr, NULL, &sa); |
| rt | 480 | net/ipv4/udp.c | if(rt==NULL) |
| rt | 487 | 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]); |