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

From: Zdenek Radouch
Date: Sun Mar 06 2005 - 16:55:08 EST

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.
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at