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
                                                                                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

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. how to determine next hop ip at Router?

hello,
       I have setup a network with 4pcs as
HostA
eth0=> 192.168.1.100

Router1
eth0=>10.1.1.1
eth1=>192.168.1.1

Router2
eth0=>10.1.1.100
eth1=>172.16.1.1

HostB
eth0=>172.16.1.100

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=192.168.1.100 and dest ip=172.16.1.100 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 172.16.1.100 i should get that next
ip to which packet is going to be forwarded. In here i want to get
information
that though dest ip is 172.16.1.100 the next ip is 10.1.1.100?
         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 ?