Next hop and o/p i/f IP address

Manoj Sontakke (manojs49@yahoo.com)
Fri, 15 Jun 2001 10:09:28 -0700 (PDT)


Hi list
Sorry to bother you with such a trivial query.

To make a routing decision ip_route_input() is called. It fills the skb->dst
with appropriate entry. Can anyone point to the exact location where I can find
the next hop and output interface IP address.

It seems
skb->dst->dev->ip_ptr->in_dev->ifa_list->ifa_address is o/p i/f ip address and
skb->dst->neighbour->dev->ip_ptr->in_dev->ifa_list->ifa_address is next hop IP
address

Please correct me if I am wrong.
Thanks for all the help.

Manoj

__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/