|
|
Subject: Re: IP stack question - msg#00156
List: linux.network
jamal wrote:
On Mon, 24 Jun 2002, Ben Greear wrote:
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.
I want to use normal TCP/IP stack as much as possible, so the sock-packet
(or raw) would not work for me, although it would work fine for the original
poster.
I'm also using source-based routing to send out the correct local
interface. I'll have to look up more information on what SO_DONTROUTE
does, and thanks for the suggestion!
Ben
--
Ben Greear <greearb@xxxxxxxxxxxxxxx> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: IP stack question
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 255.255.255.255 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.
cheers,
jamal
Next Message by Date:
click to view message preview
simple networking clenaup questions
hi list,
i have a some uestions about networking cleanups:
1) is moving the ifmap struct into net_device still on the todo list?
(it is according to the comments in the header file)
2) what about getting rid of dev->set_config, and just pass SIOCSIFMAP
to the device?
thanks,
tm
--
"They that can give up liberty to obtain a little temporary safety
deserve neighter liberty nor safety" - Benjamin Franklin
Previous Message by Thread:
click to view message preview
Re: IP stack question
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 255.255.255.255 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.
cheers,
jamal
Next Message by Thread:
click to view message preview
simple networking clenaup questions
hi list,
i have a some uestions about networking cleanups:
1) is moving the ifmap struct into net_device still on the todo list?
(it is according to the comments in the header file)
2) what about getting rid of dev->set_config, and just pass SIOCSIFMAP
to the device?
thanks,
tm
--
"They that can give up liberty to obtain a little temporary safety
deserve neighter liberty nor safety" - Benjamin Franklin
|
|