Re: Question: Gateway address == 0

Olaf Titz (olaf@bigred.inka.de)
Sun, 09 Apr 2000 16:20:08 +0200


> 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.

Olaf

-
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/