route lookup - need for explanation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I have problem with clear distinction of route lookup start-end places.

I have read linux-networking, where route lookup was decribed for 2.2.x
kernel.

Although i am curr. working with 2.4.x. And i would like to know where the
route lookup process (function) starts for the packet in ipv4:

is this here ?:

static inline int ip_rcv_finish(struct sk_buff *skb)
{
  ...

             if (skb->dst == NULL) {
316                 if (ip_route_input(skb, iph->daddr, iph->saddr,
iph->tos, dev))    <<<<<<<
317                         goto drop;
318         }

..is this the only place where net code calls routing lookup?

... i know that there is slow path and cache path. So each time first packet
from a flow comes it installs an entry in route cache. On the other hand in
route.c there are ip_route_input_slow and ip_route_output_slow functions-
what is the difference?


regards

adam

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux