[Top] [All Lists]

Re: Do you know the TCP stack? (127.x.x.x routing)

To: Thomas Graf <tgraf@xxxxxxx>, Andi Kleen <ak@xxxxxx>
Subject: Re: Do you know the TCP stack? (127.x.x.x routing)
From: Zdenek Radouch <zdenek@xxxxxxx>
Date: Sun, 06 Mar 2005 16:50:55 -0500
Cc: Martin Mares <mj@xxxxxx>, netdev@xxxxxxxxxxx, linux-net@xxxxxxxxxxxxxxx
In-reply-to: <20050306204516.GR31837@xxxxxxxxxxxxxx>
References: <m1y8d0mss2.fsf@xxxxxx> <E1D7zBN-0004hX-00@xxxxxxxxxxxxxxxxxxxxxxx> <E1D7lQN-0002gz-00@xxxxxxxxxxxxxxxxxxxxxxx> <E1D7lQN-0002gz-00@xxxxxxxxxxxxxxxxxxxxxxx> <E1D7zBN-0004hX-00@xxxxxxxxxxxxxxxxxxxxxxx> <20050306173145.GQ31837@xxxxxxxxxxxxxx> <E1D81mg-0002rz-00@xxxxxxxxxxxxxxxxxxxxxxx> <m1y8d0mss2.fsf@xxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
OK.  We've gone a full circle, [except for a few digressions
along the lines of me not knowing that while the rest of the
world still uses 'route', under linux it has long been deprecated]
you seem to be agreeing with my original guess that 
subnetting the 127 net may not be trivial, and that it may require
some kernel hacking.

So my original questions still stand:

1) How could one remove the special kernel treatment of the 127 net?
    [so that "lo" gets and "foo" gets, and
    so that the "foo" interface can actually receive packets?

2) If it does require kernel hacking, would you like to do it for me?
    (as I had said, as a contract)

>> it won't accept outside packets with a loopback address.

Not accepting packets with with a loopback address is one
thing, not accepting any packets is entirely something else.

Couldn't that whole 127 thing be ripped out of the kernel?
Why couldn't the "lo" interface be treated as any other interface?


At 09:45 PM 3/6/05 +0100, Thomas Graf wrote:
>* Andi Kleen <m1y8d0mss2.fsf@xxxxxx> 2005-03-06 21:19
>> Zdenek Radouch <zdenek@xxxxxxx> writes:
>> >
>> > There is no doubt that the 127.x net is treated in a special
>> > way.  If I have to believe what I just learned, then the 127
>> It is. 127.* is hardcoded in the routing engine and e.g.
>> it won't accept outside packets with a loopback address.
>> Most likely it's enough to change the "LOOPBACK" macro to allow
>> parts of the Class A to be used for other purposes.
>Yes, it will work around the martian route and arp checks but
>will probably break quite a few usersapce applications.

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