Re: Question: Gateway address == 0

From: Andrey Savochkin (saw@saw.sw.com.sg)
Date: Mon Apr 10 2000 - 04:06:38 EST


Hello,

On Sun, Apr 09, 2000 at 04:20:08PM +0200, Olaf Titz wrote:
> > Are you sure? If zero host part is not forbidden it is legal! If algoritms
> > may fail they are wrong. It should be explicitly specified somewhere that
> > some addresses are not allowed.
>
> Zero host part _is_ forbidden. RFC1122, section 3.2.1.3:
>
> IP addresses are not permitted to have the value 0 or -1 for
> any of the <Host-number>, <Network-number>, or <Subnet-
> number> fields (except in the special cases listed above).
> This implies that each of these fields will be at least two
> bits long.
>
> This implies that a gateway address, being a regular IP address used
> by a router, may not have the value 0 for "Host-number" (the part
> after the network mask). Nothing to argue at all.

RFC isn't Bible. I don't know any good reasoning for such restrictions.

Jan, you may play my route patch from
ftp://ftp.sw.com.sg/pub/Linux/people/saw/kernel/v2.3/
They allows different kinds of funny configurations :-)
But it certainly complicates your setup: you have to use iproute to configure
the network and pass "pervasive" flag to routes with "unusual" kind of
gateway address.

Best regards
                                        Andrey V.
                                        Savochkin

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:13 EST