[Top] [All Lists]

Re: IP stack question

To: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Subject: Re: IP stack question
From: jamal <hadi@xxxxxxxxxx>
Date: Mon, 24 Jun 2002 14:59:04 -0400 (EDT)
Cc: "Bloch, Jack" <Jack.Bloch@xxxxxxxxxxxxxxx>, "'netdev@xxxxxxxxxxx'" <netdev@xxxxxxxxxxx>
In-reply-to: <3D175B5F.5050403@xxxxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx

On Mon, 24 Jun 2002, Ben Greear wrote:

> It would not defeat the purpose of detecting at least one bad network
> link of the two.

Unless i misunderstood:
He seems to be trying to do a loopback test from one of his interfaces to
the network and back on another of his interfaces.

> I wonder if a ping -I eth1 would accomplish the
> goal as well?

This would probably cause a broadcast storm if you are doing a loopback
test ;->

Actually now that i think about it, you could probably modify ping
to do setsockopt(fd,....,SO_DONTROUTE,...) and send it out on a specific
interface. Dont know if it would work.

> I would actually like to be able to force a machine to not do local
> routing as well, and force packets out over an interface even if
> the destination is a local IP,  using source-based-routing,
> or something similar.  There is no way to do this currently?

Try that SO_DONTROUTE and see if solves your problem; you probably have to
bind the socket to a specific device as well;
For all that trouble, i would suggest you may just as well write a sock
packet based  app.


<Prev in Thread] Current Thread [Next in Thread>