From owner-freebsd-hackers Tue Dec 16 14:30:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA06546 for hackers-outgoing; Tue, 16 Dec 1997 14:30:11 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA06491 for ; Tue, 16 Dec 1997 14:29:57 -0800 (PST) (envelope-from grog@lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id IAA27052; Wed, 17 Dec 1997 08:59:45 +1030 (CST) (envelope-from grog) Message-ID: <19971217085945.37164@lemis.com> Date: Wed, 17 Dec 1997 08:59:45 +1030 From: Greg Lehey To: dennis Cc: hackers@FreeBSD.ORG Subject: Re: ifconfig reports bogus netmask References: <3.0.32.19971216103907.00a96580@etinc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <3.0.32.19971216103907.00a96580@etinc.com>; from dennis on Tue, Dec 16, 1997 at 10:39:08AM -0500 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, Dec 16, 1997 at 10:39:08AM -0500, dennis wrote: > > Is there any chance of this getting fixed? Its been broken forever. I'm > talking about PTP interfaces, where the routes are inherently host > mask routes. ifconfig reports the natural mask or whatever you give > it....and its rather confusing trying to explain to the woodchucks that > its wrong. Well, ifconfig reports the net mask that is set. And yes, it's inappropriate for "real" point-to-point interfaces. But it's not the reporting that's wrong, it's the setting. Just set all ones when setting the interface, and you'll be OK. I suppose I should mention that there's a sizeable minority who think this is the way the net mask *should* be. Maybe one of them will explain, I keep forgetting. Greg