Mail Archive: Open Networks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IP of the Router before the destination
Hi Amirali,
In real networks, the router IP address just before the destination is
difficult to be pre-determined if the route is flexible. It's a routing
issue, and really depedens on the routing algorithms and configurations
on the device.
However you can find the next hop towards to the destination when the
packet arrives on a particular node, by looking up its routing table (on
Linux). You're welcome to implement it.
Phil
>
> Hi Phil,
>
> We're going to run our application on a router located somewhere in the
> network. When our application receives a destination ip address to process,
> it needs to know the ip address of the router right before the destination ip.
>
> Thanks for your help,
>
> Amir
>
> At 04:48 PM 11/27/2000 -0500, you wrote:
> >I do not fully understand your question. At which point you want to the
> >router IP address? Source, destination or particular control terminal?
> >
> >Phil
> >
> >
> >Amirali Valiani wrote:
> > >
> > > Hi,
> > >
> > > We're currently developing an ORE application on Linux, and our goal is to
> > > determine the ip address of the router that is immediately before the
> > > destination ip address. Is there any simple way to do this?
> > >
> > > Thanks,
> > > Amir and Jimmy
Home |
Date Index |
Thread Index