netdev
[Top] [All Lists]

[Fwd: local_loopback disable]

To: netdev@xxxxxxxxxxx
Subject: [Fwd: local_loopback disable]
From: Mark Koneazny <koneazny@xxxxxxx>
Date: Thu, 26 Apr 2001 12:20:17 -0500
Organization: sgi - asd group
Sender: owner-netdev@xxxxxxxxxxx
Hi,

Anyone have any suggestions?

Thanks,

Mark K.
--- Begin Message ---
To: "linux-acenic@xxxxxxxxxxxxxx" <linux-acenic@xxxxxxxxxxxxxx>
Subject: Re: local_loopback disable
From: Pekka Pietikainen <Pekka.Pietikainen@xxxxxxx>
Date: Thu, 26 Apr 2001 10:57:16 +0200 (CEST)
Delivered-to: mailing list linux-acenic@xxxxxxxxxx
In-reply-to: <3AE70B5A.F9BCA9BA@xxxxxxx>
Mailing-list: contact linux-acenic-help@xxxxxxxxxx; run by ezmlm
On Wed, 25 Apr 2001, Steve Modica wrote:
> > Mark> I'm attempting to test a single Alteon GbE card via an external
> > Mark> loopback cable.  I want to get data out on the cable.  In the
> > Mark> past, I have accomplished this under Irix (SGI unix) by
> > Mark> disabling the following at /var/sysgen/master.d/bsd:
> I suspect this is not an issue with the acenic card per se, but rather a
> decision made in the ip layer.  If it looks like the packet is meant for the
> local machine, it probably calls loopback_xmit automagically.
> 
Indeed, in Linux overriding loopback seems impossible by
just doing some routing tricks, so you'll need to hack some code to make
it work. 

What might work is compiling in the acenic driver statically,  and
changing drivers/net/Space.c so that dev_base points to eth0, and
loopback is after that.

Another possible place for modifications is net/ipv4/devinet.c,
in inet_select_addr, just check the destination, and if it's not
a loopback addr, ignore the loopback address.

A third way of conning the machine to send the packets to the wire
is to actually send them to another IP, then have a NAT rule
to change the incoming packets to have your IP as the destination. If
you're lucky it might even work ;)

Anyway, the guys on netdev@xxxxxxxxxxx are the best ones to ask about
this, I'm sure they'll know.



---------------------------------------------------------------------
To unsubscribe, e-mail: linux-acenic-unsubscribe@xxxxxxxxxx
For additional commands, e-mail: linux-acenic-help@xxxxxxxxxx

--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>
  • [Fwd: local_loopback disable], Mark Koneazny <=