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 | 238 | net/tcp/ip.c | print_rt(struct rtable *rt) |
rt | 242 | net/tcp/ip.c | (long) rt, (long) rt->next, (long) rt->dev, |
rt | 243 | net/tcp/ip.c | rt->dev->name, in_ntoa(rt->net)); |
rt | 244 | net/tcp/ip.c | printk("ROUTER=%s\n", in_ntoa(rt->router)); |
rt | 259 | net/tcp/ip.c | struct rtable *rt; |
rt | 262 | net/tcp/ip.c | for (rt=rt_base; rt != NULL; rt=rt->next) |
rt | 265 | net/tcp/ip.c | if (ip_addr_match (rt->net, daddr)) |
rt | 267 | net/tcp/ip.c | PRINTK (("IP: %X via %s (%X)\n", daddr, rt->dev->name, rt->router)); |
rt | 268 | net/tcp/ip.c | *raddr = rt->router; |
rt | 269 | net/tcp/ip.c | return (rt->dev); |
rt | 308 | net/tcp/ip.c | add_route (struct rtable *rt) |
rt | 314 | net/tcp/ip.c | print_rt(rt); |
rt | 318 | net/tcp/ip.c | rt->next = NULL; |
rt | 319 | net/tcp/ip.c | rt_base = rt; |
rt | 328 | net/tcp/ip.c | if (mask & rt->net) |
rt | 339 | net/tcp/ip.c | if (r->net == rt->net) |
rt | 343 | net/tcp/ip.c | rt->next = r->next; |
rt | 344 | net/tcp/ip.c | rt_base = rt; |
rt | 348 | net/tcp/ip.c | rt->next = r->next; |
rt | 349 | net/tcp/ip.c | r1->next = rt; |
rt | 361 | net/tcp/ip.c | rt->next = rt_base; |
rt | 362 | net/tcp/ip.c | rt_base = rt; |
rt | 365 | net/tcp/ip.c | rt->next = r; |
rt | 366 | net/tcp/ip.c | r1->next = rt; |
rt | 374 | net/tcp/ip.c | rt->next = NULL; |
rt | 375 | net/tcp/ip.c | r1->next = rt; |
rt | 381 | net/tcp/ip.c | struct rtable *rt; |
rt | 407 | net/tcp/ip.c | rt = kmalloc (sizeof (*rt), GFP_KERNEL); |
rt | 408 | net/tcp/ip.c | if (rt == NULL) return (-ENOMEM); |
rt | 409 | net/tcp/ip.c | rt->net = ipc.net; |
rt | 410 | net/tcp/ip.c | rt->dev = dev; |
rt | 411 | net/tcp/ip.c | rt->router = 0; |
rt | 412 | net/tcp/ip.c | add_route (rt); |
rt | 419 | net/tcp/ip.c | rt = kmalloc (sizeof (*rt),GFP_KERNEL); |
rt | 420 | net/tcp/ip.c | if (rt == NULL) return (-ENOMEM); |
rt | 421 | net/tcp/ip.c | rt->net = 0; |
rt | 422 | net/tcp/ip.c | rt->dev = dev; |
rt | 423 | net/tcp/ip.c | rt->router = ipc.router; |
rt | 424 | net/tcp/ip.c | add_route (rt); |
rt | 430 | net/tcp/ip.c | rt = kmalloc (sizeof (*rt), GFP_KERNEL); |
rt | 431 | net/tcp/ip.c | if (rt == NULL) return (-ENOMEM); |
rt | 432 | net/tcp/ip.c | rt->net = ipc.paddr; |
rt | 433 | net/tcp/ip.c | rt->dev = dev; |
rt | 434 | net/tcp/ip.c | rt->router = 0; |
rt | 435 | net/tcp/ip.c | add_route (rt); |
rt | 187 | net/tcp/ip.h | void add_route (struct rtable *rt); |