tag | line | file | source code |
rt | 176 | kernel/module.c | struct mod_routines rt; |
rt | 198 | kernel/module.c | memcpy_fromfs(&rt, routines, sizeof rt); |
rt | 207 | kernel/module.c | (unsigned long) rt.init, (unsigned long) rt.cleanup)); |
rt | 208 | kernel/module.c | mp->cleanup = rt.cleanup; |
rt | 249 | kernel/module.c | if ((*rt.init)() != 0) |
rt | 964 | net/inet/arp.c | struct rtable *rt; |
rt | 1005 | net/inet/arp.c | rt = ip_rt_route(ip, NULL, NULL); |
rt | 1006 | net/inet/arp.c | if (rt == NULL) |
rt | 1056 | net/inet/arp.c | entry->dev = rt->rt_dev; |
rt | 292 | net/inet/icmp.c | struct rtable *rt; |
rt | 322 | net/inet/icmp.c | rt = ip_rt_route(ip, NULL, NULL); |
rt | 323 | net/inet/icmp.c | if (!rt) |
rt | 325 | net/inet/icmp.c | if (rt->rt_gateway != source) |
rt | 197 | net/inet/ip.c | struct rtable *rt; |
rt | 219 | net/inet/ip.c | rt = ip_rt_local(daddr, &optmem, &src); |
rt | 221 | net/inet/ip.c | rt = ip_rt_route(daddr, &optmem, &src); |
rt | 222 | net/inet/ip.c | if (rt == NULL) |
rt | 228 | net/inet/ip.c | *dev = rt->rt_dev; |
rt | 235 | net/inet/ip.c | raddr = rt->rt_gateway; |
rt | 245 | net/inet/ip.c | rt = ip_rt_local(daddr, &optmem, &src); |
rt | 247 | net/inet/ip.c | rt = ip_rt_route(daddr, &optmem, &src); |
rt | 255 | net/inet/ip.c | raddr = (rt == NULL) ? 0 : rt->rt_gateway; |
rt | 1259 | net/inet/ip.c | struct rtable *rt; /* Route we use */ |
rt | 1296 | net/inet/ip.c | rt = ip_rt_route(iph->daddr, NULL, NULL); |
rt | 1297 | net/inet/ip.c | if (rt == NULL) |
rt | 1316 | net/inet/ip.c | raddr = rt->rt_gateway; |
rt | 1324 | net/inet/ip.c | rt = ip_rt_route(raddr, NULL, NULL); |
rt | 1325 | net/inet/ip.c | if (rt == NULL) |
rt | 1333 | net/inet/ip.c | if (rt->rt_gateway != 0) |
rt | 1334 | net/inet/ip.c | raddr = rt->rt_gateway; |
rt | 1343 | net/inet/ip.c | dev2 = rt->rt_dev; |
rt | 278 | net/inet/ipx.c | ipx_route *rt=ipxrtr_get_dev(r->ipx_network); |
rt | 310 | net/inet/ipx.c | if (rt==NULL) |
rt | 312 | net/inet/ipx.c | rt=(ipx_route *)kmalloc(sizeof(ipx_route),GFP_ATOMIC); /* Because we are brave and don't lock the table! */ |
rt | 313 | net/inet/ipx.c | if(rt==NULL) |
rt | 315 | net/inet/ipx.c | rt->next=ipx_router_list; |
rt | 316 | net/inet/ipx.c | ipx_router_list=rt; |
rt | 318 | net/inet/ipx.c | rt->net=r->ipx_network; |
rt | 319 | net/inet/ipx.c | rt->router_net=r->ipx_router_network; |
rt | 320 | net/inet/ipx.c | memcpy(rt->router_node,r->ipx_router_node,sizeof(rt->router_node)); |
rt | 321 | net/inet/ipx.c | rt->flags=IPX_RT_ROUTED; |
rt | 322 | net/inet/ipx.c | rt->dlink_type = dlink_type; |
rt | 323 | net/inet/ipx.c | rt->datalink = datalink; |
rt | 324 | net/inet/ipx.c | rt->dev=rt1->dev; |
rt | 339 | net/inet/ipx.c | rt=(ipx_route *)kmalloc(sizeof(ipx_route),GFP_ATOMIC); /* Because we are brave and don't lock the table! */ |
rt | 340 | net/inet/ipx.c | if(rt==NULL) |
rt | 342 | net/inet/ipx.c | rt->next=ipx_router_list; |
rt | 343 | net/inet/ipx.c | ipx_router_list=rt; |
rt | 344 | net/inet/ipx.c | rt->router_net=0; |
rt | 345 | net/inet/ipx.c | memset(rt->router_node,0,sizeof(rt->router_node)); |
rt | 346 | net/inet/ipx.c | rt->dev=dev; |
rt | 347 | net/inet/ipx.c | rt->net=r->ipx_network; |
rt | 348 | net/inet/ipx.c | rt->flags=0; |
rt | 349 | net/inet/ipx.c | rt->dlink_type = dlink_type; |
rt | 350 | net/inet/ipx.c | rt->datalink = datalink; |
rt | 351 | net/inet/ipx.c | ipxrtr_add_localnet(rt); |
rt | 433 | net/inet/ipx.c | ipx_route *rt; |
rt | 439 | net/inet/ipx.c | for (rt = ipx_router_list; rt != NULL; rt = rt->next) |
rt | 441 | net/inet/ipx.c | len += sprintf (buffer+len,"%08lX %08lX:%02X%02X%02X%02X%02X%02X %02X %s\n", ntohl(rt->net), |
rt | 442 | net/inet/ipx.c | ntohl(rt->router_net), rt->router_node[0], rt->router_node[1], rt->router_node[2], |
rt | 443 | net/inet/ipx.c | rt->router_node[3], rt->router_node[4], rt->router_node[5], rt->flags, rt->dev->name); |
rt | 655 | net/inet/ipx.c | struct ipx_route *rt; |
rt | 692 | net/inet/ipx.c | rt = ipxrtr_get_default_net(); |
rt | 696 | net/inet/ipx.c | rt = ipxrtr_get_dev(addr->sipx_network); |
rt | 699 | net/inet/ipx.c | if(rt == NULL) |
rt | 707 | net/inet/ipx.c | sk->ipx_source_addr.net=rt->net; |
rt | 711 | net/inet/ipx.c | nodestart = sk->ipx_source_addr.node + (6 - rt->dev->addr_len); |
rt | 712 | net/inet/ipx.c | memcpy(nodestart,rt->dev->dev_addr,rt->dev->addr_len); |
rt | 801 | net/inet/ipx.c | ipx_route *rt; |
rt | 868 | net/inet/ipx.c | rt=ipxrtr_get_dev(ipx->ipx_dest.net); |
rt | 869 | net/inet/ipx.c | if(rt==NULL) /* Unlike IP we can send on the interface we received. Eg doing DIX/802.3 conversion */ |
rt | 877 | net/inet/ipx.c | outgoing_size = rt->datalink->header_length + rt->dev->hard_header_len; |
rt | 909 | net/inet/ipx.c | skb2->dev = rt->dev; |
rt | 910 | net/inet/ipx.c | rt->datalink->datalink_header(rt->datalink, skb2, |
rt | 911 | net/inet/ipx.c | (rt->flags&IPX_RT_ROUTED)?rt->router_node |
rt | 914 | net/inet/ipx.c | dev_queue_xmit(skb2,rt->dev,SOPRI_NORMAL); |
rt | 965 | net/inet/ipx.c | ipx_route *rt; |
rt | 1025 | net/inet/ipx.c | rt = ipxrtr_get_default_net(); |
rt | 1026 | net/inet/ipx.c | if (rt != NULL) |
rt | 1027 | net/inet/ipx.c | usipx->sipx_network = rt->net; |
rt | 1029 | net/inet/ipx.c | rt=ipxrtr_get_dev(usipx->sipx_network); |
rt | 1031 | net/inet/ipx.c | if(rt==NULL) |
rt | 1036 | net/inet/ipx.c | dev=rt->dev; |
rt | 1037 | net/inet/ipx.c | dl = rt->datalink; |
rt | 1063 | net/inet/ipx.c | skb->dev=rt->dev; |
rt | 1067 | net/inet/ipx.c | (rt->flags&IPX_RT_ROUTED)?rt->router_node:usipx->sipx_node); |
rt | 1075 | net/inet/ipx.c | (rt->flags&IPX_RT_ROUTED)?rt->router_node |
rt | 1102 | net/inet/ipx.c | pt.type = rt->dlink_type; |
rt | 1112 | net/inet/ipx.c | pt.type = rt->dlink_type; |
rt | 1120 | net/inet/ipx.c | skb2->h.raw = skb2->data + rt->datalink->header_length |
rt | 239 | net/inet/rarp.c | struct rtable *rt; |
rt | 278 | net/inet/rarp.c | rt = ip_rt_route(ip, NULL, NULL); |
rt | 279 | net/inet/rarp.c | if (rt == NULL) |
rt | 318 | net/inet/rarp.c | entry->dev = rt->rt_dev; |
rt | 173 | net/inet/route.c | struct rtable * rt; |
rt | 175 | net/inet/route.c | for (rt = rt_base ; ; rt = rt->rt_next) |
rt | 177 | net/inet/route.c | if (!rt) |
rt | 179 | net/inet/route.c | if ((gw ^ rt->rt_dst) & rt->rt_mask) |
rt | 185 | net/inet/route.c | if (rt->rt_flags & RTF_GATEWAY) |
rt | 187 | net/inet/route.c | return rt->rt_dev; |
rt | 202 | net/inet/route.c | struct rtable *r, *rt; |
rt | 261 | net/inet/route.c | rt = (struct rtable *) kmalloc(sizeof(struct rtable), GFP_ATOMIC); |
rt | 262 | net/inet/route.c | if (rt == NULL) |
rt | 266 | net/inet/route.c | memset(rt, 0, sizeof(struct rtable)); |
rt | 267 | net/inet/route.c | rt->rt_flags = flags | RTF_UP; |
rt | 268 | net/inet/route.c | rt->rt_dst = dst; |
rt | 269 | net/inet/route.c | rt->rt_dev = dev; |
rt | 270 | net/inet/route.c | rt->rt_gateway = gw; |
rt | 271 | net/inet/route.c | rt->rt_mask = mask; |
rt | 272 | net/inet/route.c | rt->rt_mss = dev->mtu - HEADER_SIZE; |
rt | 273 | net/inet/route.c | rt->rt_window = 0; /* Default is no clamping */ |
rt | 277 | net/inet/route.c | if(rt->rt_flags & RTF_MSS) |
rt | 278 | net/inet/route.c | rt->rt_mss = mtu; |
rt | 280 | net/inet/route.c | if(rt->rt_flags & RTF_WINDOW) |
rt | 281 | net/inet/route.c | rt->rt_window = window; |
rt | 321 | net/inet/route.c | rt->rt_next = r; |
rt | 322 | net/inet/route.c | *rp = rt; |
rt | 328 | net/inet/route.c | if ((rt->rt_dev->flags & IFF_LOOPBACK) && !rt_loopback) |
rt | 329 | net/inet/route.c | rt_loopback = rt; |
rt | 536 | net/inet/route.c | struct rtable *rt; |
rt | 538 | net/inet/route.c | for (rt = rt_base; rt != NULL || early_out ; rt = rt->rt_next) |
rt | 540 | net/inet/route.c | if (!((rt->rt_dst ^ daddr) & rt->rt_mask)) |
rt | 546 | net/inet/route.c | if ((rt->rt_dev->flags & IFF_BROADCAST) && |
rt | 547 | net/inet/route.c | rt->rt_dev->pa_brdaddr == daddr) |
rt | 552 | net/inet/route.c | *src_addr= rt->rt_dev->pa_addr; |
rt | 554 | net/inet/route.c | if (daddr == rt->rt_dev->pa_addr) { |
rt | 555 | net/inet/route.c | if ((rt = rt_loopback) == NULL) |
rt | 558 | net/inet/route.c | rt->rt_use++; |
rt | 559 | net/inet/route.c | return rt; |
rt | 566 | net/inet/route.c | struct rtable *rt; |
rt | 568 | net/inet/route.c | for (rt = rt_base; rt != NULL || early_out ; rt = rt->rt_next) |
rt | 573 | net/inet/route.c | if (rt->rt_flags&RTF_GATEWAY) |
rt | 576 | net/inet/route.c | if (!((rt->rt_dst ^ daddr) & rt->rt_mask)) |
rt | 582 | net/inet/route.c | if ((rt->rt_dev->flags & IFF_BROADCAST) && |
rt | 583 | net/inet/route.c | rt->rt_dev->pa_brdaddr == daddr) |
rt | 588 | net/inet/route.c | *src_addr= rt->rt_dev->pa_addr; |
rt | 590 | net/inet/route.c | if (daddr == rt->rt_dev->pa_addr) { |
rt | 591 | net/inet/route.c | if ((rt = rt_loopback) == NULL) |
rt | 594 | net/inet/route.c | rt->rt_use++; |
rt | 595 | net/inet/route.c | return rt; |
rt | 604 | net/inet/route.c | static int ip_get_old_rtent(struct old_rtentry * src, struct rtentry * rt) |
rt | 613 | net/inet/route.c | memset(rt, 0, sizeof(*rt)); |
rt | 614 | net/inet/route.c | rt->rt_dst = tmp.rt_dst; |
rt | 615 | net/inet/route.c | rt->rt_gateway = tmp.rt_gateway; |
rt | 616 | net/inet/route.c | rt->rt_genmask.sa_family = AF_INET; |
rt | 617 | net/inet/route.c | ((struct sockaddr_in *) &rt->rt_genmask)->sin_addr.s_addr = tmp.rt_genmask; |
rt | 618 | net/inet/route.c | rt->rt_flags = tmp.rt_flags; |
rt | 619 | net/inet/route.c | rt->rt_dev = tmp.rt_dev; |
rt | 631 | net/inet/route.c | struct rtentry rt; |
rt | 639 | net/inet/route.c | err = ip_get_old_rtent((struct old_rtentry *) arg, &rt); |
rt | 642 | net/inet/route.c | return (cmd == SIOCDELRTOLD) ? rt_kill(&rt) : rt_new(&rt); |
rt | 651 | net/inet/route.c | memcpy_fromfs(&rt, arg, sizeof(struct rtentry)); |
rt | 652 | net/inet/route.c | return (cmd == SIOCDELRT) ? rt_kill(&rt) : rt_new(&rt); |
rt | 1951 | net/inet/tcp.c | struct rtable *rt; |
rt | 2078 | net/inet/tcp.c | rt=ip_rt_route(saddr, NULL,NULL); |
rt | 2080 | net/inet/tcp.c | if(rt!=NULL && (rt->rt_flags&RTF_WINDOW)) |
rt | 2081 | net/inet/tcp.c | newsk->window_clamp = rt->rt_window; |
rt | 2087 | net/inet/tcp.c | else if(rt!=NULL && (rt->rt_flags&RTF_MSS)) |
rt | 2088 | net/inet/tcp.c | newsk->mtu = rt->rt_mss - HEADER_SIZE; |
rt | 3566 | net/inet/tcp.c | struct rtable *rt; |
rt | 3626 | net/inet/tcp.c | rt=ip_rt_route(sk->daddr, NULL, NULL); |
rt | 3661 | net/inet/tcp.c | if(rt!=NULL && (rt->rt_flags&RTF_WINDOW)) |
rt | 3662 | net/inet/tcp.c | sk->window_clamp=rt->rt_window; |
rt | 3668 | net/inet/tcp.c | else if(rt!=NULL && (rt->rt_flags&RTF_MTU)) |
rt | 3669 | net/inet/tcp.c | sk->mtu = rt->rt_mss; |
rt | 250 | net/inet/udp.c | unsigned char *from, int len, int rt) |
rt | 272 | net/inet/udp.c | skb->localroute = sk->localroute|(rt&MSG_DONTROUTE); |