tag | line | file | source code |
rt | 256 | net/tcp/icmp.c | struct rtable *rt; /* we will add a new route. */ |
rt | 260 | net/tcp/icmp.c | rt = kmalloc (sizeof (*rt), GFP_ATOMIC); |
rt | 261 | net/tcp/icmp.c | if (rt != NULL) |
rt | 263 | net/tcp/icmp.c | rt->net = iph->daddr; |
rt | 266 | net/tcp/icmp.c | if ((icmph->code & 1) == 0) rt->net &= 0x00ffffff; |
rt | 267 | net/tcp/icmp.c | rt->dev = dev; |
rt | 268 | net/tcp/icmp.c | rt->router = icmph->un.gateway; |
rt | 269 | net/tcp/icmp.c | add_route (rt); |
rt | 236 | net/tcp/ip.c | print_rt(struct rtable *rt) |
rt | 240 | net/tcp/ip.c | (long) rt, (long) rt->next, (long) rt->dev, |
rt | 241 | net/tcp/ip.c | rt->dev->name, in_ntoa(rt->net)); |
rt | 242 | net/tcp/ip.c | printk("ROUTER=%s\n", in_ntoa(rt->router)); |
rt | 257 | net/tcp/ip.c | struct rtable *rt; |
rt | 260 | net/tcp/ip.c | for (rt=rt_base; rt != NULL; rt=rt->next) |
rt | 263 | net/tcp/ip.c | if (ip_addr_match (rt->net, daddr)) |
rt | 265 | net/tcp/ip.c | PRINTK (("IP: %X via %s (%X)\n", daddr, rt->dev->name, rt->router)); |
rt | 266 | net/tcp/ip.c | *raddr = rt->router; |
rt | 267 | net/tcp/ip.c | return (rt->dev); |
rt | 306 | net/tcp/ip.c | add_route (struct rtable *rt) |
rt | 312 | net/tcp/ip.c | print_rt(rt); |
rt | 316 | net/tcp/ip.c | rt->next = NULL; |
rt | 317 | net/tcp/ip.c | rt_base = rt; |
rt | 326 | net/tcp/ip.c | if (mask & rt->net) |
rt | 337 | net/tcp/ip.c | if (r->net == rt->net) |
rt | 341 | net/tcp/ip.c | rt->next = r->next; |
rt | 342 | net/tcp/ip.c | rt_base = rt; |
rt | 346 | net/tcp/ip.c | rt->next = r->next; |
rt | 347 | net/tcp/ip.c | r1->next = rt; |
rt | 359 | net/tcp/ip.c | rt->next = rt_base; |
rt | 360 | net/tcp/ip.c | rt_base = rt; |
rt | 363 | net/tcp/ip.c | rt->next = r; |
rt | 364 | net/tcp/ip.c | r1->next = rt; |
rt | 372 | net/tcp/ip.c | rt->next = NULL; |
rt | 373 | net/tcp/ip.c | r1->next = rt; |
rt | 379 | net/tcp/ip.c | struct rtable *rt; |
rt | 405 | net/tcp/ip.c | rt = kmalloc (sizeof (*rt), GFP_KERNEL); |
rt | 406 | net/tcp/ip.c | if (rt == NULL) return (-ENOMEM); |
rt | 407 | net/tcp/ip.c | rt->net = ipc.net; |
rt | 408 | net/tcp/ip.c | rt->dev = dev; |
rt | 409 | net/tcp/ip.c | rt->router = 0; |
rt | 410 | net/tcp/ip.c | add_route (rt); |
rt | 417 | net/tcp/ip.c | rt = kmalloc (sizeof (*rt),GFP_KERNEL); |
rt | 418 | net/tcp/ip.c | if (rt == NULL) return (-ENOMEM); |
rt | 419 | net/tcp/ip.c | rt->net = 0; |
rt | 420 | net/tcp/ip.c | rt->dev = dev; |
rt | 421 | net/tcp/ip.c | rt->router = ipc.router; |
rt | 422 | net/tcp/ip.c | add_route (rt); |
rt | 428 | net/tcp/ip.c | rt = kmalloc (sizeof (*rt), GFP_KERNEL); |
rt | 429 | net/tcp/ip.c | if (rt == NULL) return (-ENOMEM); |
rt | 430 | net/tcp/ip.c | rt->net = ipc.paddr; |
rt | 431 | net/tcp/ip.c | rt->dev = dev; |
rt | 432 | net/tcp/ip.c | rt->router = 0; |
rt | 433 | net/tcp/ip.c | add_route (rt); |
rt | 181 | net/tcp/ip.h | void add_route (struct rtable *rt); |