Next hop and o/p i/f IP address

Next hop and o/p i/f IP address

Post by Manoj Sontakk » Sun, 17 Jun 2001 02:20:05

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

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


Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at
Please read the FAQ at


1. how to determine next hop ip at Router?

       I have setup a network with 4pcs as




And set Router1 and Router2 as packet forwarder(Router). Now what i
want is when i send a packet from HostA to HostB packet is still sent
as src ip= and dest ip= its ok but how can i
check at Router1 that packet is Direct Delivery or Indirect Delivery?
What i want that i should get information at Router1 that whaterver
HostA sends a packet with dest ip i should get that next
ip to which packet is going to be forwarded. In here i want to get
that though dest ip is the next ip is
         How to get that info???

2. 3.1.2 libXaw3d elf libs

3. Traceroute not displaying getway IP address within Hops

4. mysterious shifts in USB storage drivers.

5. HOP HOP and skip with PINE

6. XWindows Config

7. Changing IP address on Solaris 9 with multiple virtual IP addresses

8. how to create shared libraries with gcc/g++ and ld

9. WANTED: pingmac <IP ADDR> which returns <MAC ADDRESS of IP ADDRESS>

10. dynamic ip address - how to get to know my ip address?

11. IP Masquerading with IP Address and Mac Address Restrictions

12. IP Hops

13. Is there a Solaris IP hop count parameter ?