From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 8 18:57:37 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 20C42106566B for ; Fri, 8 Apr 2011 18:57:37 +0000 (UTC) (envelope-from boogie@lazybytes.org) Received: from mail.lazybytes.org (mail.lazybytes.org [195.54.209.3]) by mx1.freebsd.org (Postfix) with ESMTP id CC0238FC13 for ; Fri, 8 Apr 2011 18:57:35 +0000 (UTC) Received: from [192.168.13.4] (unknown [192.168.13.4]) by mail.lazybytes.org (Postfix) with ESMTPSA id E597EC69; Fri, 8 Apr 2011 22:57:33 +0400 (MSD) Message-ID: <4D9F5A96.6040501@lazybytes.org> Date: Fri, 08 Apr 2011 22:57:26 +0400 From: Sergey Vinogradov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Garrett Cooper References: <4D9EFAC6.4020906@lazybytes.org> <7EA5889E-77EF-4BAE-9655-C33692A75602@bsdimp.com> <4D9F2C88.4010205@lazybytes.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (mail.lazybytes.org); Fri, 08 Apr 2011 22:57:34 +0400 (MSD) Cc: FreeBSD Hackers 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: Fri, 08 Apr 2011 18:57:37 -0000 [snip] >> So, maybe, while following the POLA, we should add an option, as Daniel >> mentioned above? To output the CIDR? > > Eh... I don't know if doing this would be wise because it might break > some 3rd party mechanisms for parsing the output (as broken as you > might think it is), in particular (for example) because people can > alias the ifconfig command to something else. If we'll introduce such ifconfig option (i.e. ifconfig -c) nothing is going to break: ifconfig's default behavior won't change, and people, who will alias `ifconfig' to `ifconfig -c' are their own enemies. User should think about consequences of such actions. -- wbr, Boo