Re: Question: Gateway address == 0

From: Olaf Titz (olaf@bigred.inka.de)
Date: Sun Apr 09 2000 - 09:20:08 EST


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



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