Skip to contentSkip to conversation

Next hop and o/p i/f IP address

DISCUSSION Manoj Sontakke 1 participant 1 message Jun 15, 2001

lore
Share & tools
lore
#0 lore raw

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/