From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 9 16:51:26 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7FF2106564A for ; Sat, 9 Apr 2011 16:51:26 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from imr-ma02.mx.aol.com (imr-ma02.mx.aol.com [64.12.206.40]) by mx1.freebsd.org (Postfix) with ESMTP id 8900B8FC08 for ; Sat, 9 Apr 2011 16:51:26 +0000 (UTC) Received: from imo-ma04.mx.aol.com (imo-ma04.mx.aol.com [64.12.78.139]) by imr-ma02.mx.aol.com (8.14.1/8.14.1) with ESMTP id p39GfFrj007301 for ; Sat, 9 Apr 2011 12:41:15 -0400 Received: from dieterbsd@engineer.com by imo-ma04.mx.aol.com (mail_out_v42.9.) id n.e79.9cd27f6 (56026) for ; Sat, 9 Apr 2011 12:41:10 -0400 (EDT) Received: from smtprly-md03.mx.aol.com (smtprly-md03.mx.aol.com [64.12.143.156]) by cia-md07.mx.aol.com (v129.9) with ESMTP id MAILCIAMD078-d4374da08c2115f; Sat, 09 Apr 2011 12:41:10 -0400 Received: from web-mmc-m02 (web-mmc-m02.sim.aol.com [64.12.224.135]) by smtprly-md03.mx.aol.com (v129.9) with ESMTP id MAILSMTPRLYMD036-d4374da08c2115f; Sat, 09 Apr 2011 12:41:05 -0400 To: freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Date: Sat, 09 Apr 2011 12:41:05 -0400 X-MB-Message-Source: WebUI X-AOL-IP: 67.206.165.243 X-MB-Message-Type: User MIME-Version: 1.0 From: dieterbsd@engineer.com Content-Type: text/plain; charset="us-ascii"; format=flowed X-Mailer: Mail.com Webmail 33490-STANDARD Received: from 67.206.165.243 by web-mmc-m02.sysops.aol.com (64.12.224.135) with HTTP (WebMailUI); Sat, 09 Apr 2011 12:41:05 -0400 Message-Id: <8CDC4EC0DEBF3BD-18FC-3276@web-mmc-m02.sysops.aol.com> X-Spam-Flag: NO X-AOL-SENDER: dieterbsd@engineer.com Subject: Re: ifconfig output: ipv4 netmask format X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Apr 2011 16:51:26 -0000 Paul Schenkeveld writes: > Although non-contiguous netmasks are not legal anymore in IPv4, our > ifconfig still allows to do something like: > > # ifconfig em0 inet 10.0.5.2 netmask 255.0.255.0 > # ifconfig em0 > em0: flags=3D8843 metric 0=20 mtu 1500 > =20 options=3D219b > ether xx:xx:xx:xx:xx:xx > inet 10.0.5.2 netmask 0xff00ff00 broadcast 10.255.5.255 > media: Ethernet autoselect (1000baseT ) > status: active If this is no longer legal, should ifconfig issue a warning? J. Hellenthal writes: > This is the year 2011 right ? when are we going to support new users > rather than supporting old outdated washed up "scripts" ? Change for the sake of change is not progress. Perhaps when you get more experience you will understand the "joy" of spending massive=20 amounts of time attempting to deal with gratuitious changes. Personally, I'd prefer to be spending my time fixing things that are truly broken rather than repainting the bikeshed in today's fashionable color. And unfortunately there are things that are badly broken. Things that cause data loss. Hardware that isn't supported properly. Some of these are in the PR database if you need a list of useful things to work on. As far as ifconfig goes, I'm in the camp that says 1) Leave the default alone to avoid breaking scripts. 2) Add an option for those who want it. (Put some thought into it, don't just do the first thing that springs to mind.) 3) Those that want a different default can use an alias.