Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g5OJ2QnC004090 for ; Mon, 24 Jun 2002 12:02:26 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g5OJ2Qhh004089 for netdev-outgoing; Mon, 24 Jun 2002 12:02:26 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-netdev@oss.sgi.com using -f Received: from cyberus.ca (mail.cyberus.ca [216.191.240.111]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g5OJ2JnC004086 for ; Mon, 24 Jun 2002 12:02:20 -0700 Received: from shell.cyberus.ca (shell [216.191.240.114]) by cyberus.ca (8.9.3/8.9.3/Cyberus Online Inc.) with ESMTP id PAA20708; Mon, 24 Jun 2002 15:05:24 -0400 (EDT) Received: from localhost (hadi@localhost) by shell.cyberus.ca (8.11.6+Sun/8.11.6) with ESMTP id g5OIxJH14131; Mon, 24 Jun 2002 14:59:27 -0400 (EDT) X-Authentication-Warning: shell.cyberus.ca: hadi owned process doing -bs Date: Mon, 24 Jun 2002 14:59:04 -0400 (EDT) From: jamal To: Ben Greear cc: "Bloch, Jack" , "'netdev@oss.sgi.com'" Subject: Re: IP stack question In-Reply-To: <3D175B5F.5050403@candelatech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-netdev@oss.sgi.com Precedence: bulk Content-Length: 1126 Lines: 37 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