Hi All I got the answer!!! skb->dst->dev->ip_ptr->in_device->ifa_list->ifa_address is o/p interface ip address rth->rt_gateway is next hop IP address manoj --- Amit Kucheria <amitk@ittc.ku.edu> wrote: > Try Glenn Herrin's excellent docuement titled Linux IP networking....it > walks through the process of sending, recieving, forwarding of IP packets. > > Search google for the document. > > On Thu, 14 Jun 2001, Manoj Sontakke wrote: > > > 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->???? is o/p interface ip address and > > skb->dst->neighbour->dev->ip_ptr->???? is next hop IP address > > > > Please correct me if I am wrong and also what's this ???? ;-) > > Thanks for all the help. __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org