From owner-freebsd-bugs Sat Aug 12 02:52:11 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id CAA19531 for bugs-outgoing; Sat, 12 Aug 1995 02:52:11 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id CAA19525 for ; Sat, 12 Aug 1995 02:52:07 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id CAA05606; Sat, 12 Aug 1995 02:51:49 -0700 From: "Rodney W. Grimes" Message-Id: <199508120951.CAA05606@gndrsh.aac.dev.com> Subject: Re: 950726-SNAP lp0/nfs install bug ? To: jkh@freefall.FreeBSD.org (Jordan K. Hubbard) Date: Sat, 12 Aug 1995 02:51:49 -0700 (PDT) Cc: freebsd-bugs@freebsd.org, joerg_wunsch@uriah.heep.sax.de In-Reply-To: <8860.808173419@freefall.FreeBSD.org> from "Jordan K. Hubbard" at Aug 11, 95 01:36:59 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1001 Sender: bugs-owner@freebsd.org Precedence: bulk > > > Jordan, speaking at this part of the installation, it would be nice to > > either pre-allocate the netmask field with the proper default netmask > > (similar to the `domain') or omit the `netmask' keyword from the > > ifconfig command line if no netmask has been provided. Otherwise, > > Yeek! I thought I did! I will look at the code.. > > Hmmm. Anyone willing to give me a little formula to calculate > netmask based on IP address? Then I could also fill it in.. :-) See the ifconfig code that does this now based upon the class of network address. It is rather simply. For inet address with the high order 2 bits 0 the standard class A netmask of 0xff00000000 applies, for inet address starting 10 a class B netmask of 0xffff0000 applies, and finally for an inet address starting 11 a class C netmask of 0xffffff00 applies. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Reliable computers for FreeBSD