From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 8 15:52:16 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 8DD9F1065670 for ; Fri, 8 Apr 2011 15:52:16 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 2F24C8FC1B for ; Fri, 8 Apr 2011 15:52:15 +0000 (UTC) Received: by wwc33 with SMTP id 33so4225797wwc.31 for ; Fri, 08 Apr 2011 08:52:15 -0700 (PDT) Received: by 10.227.59.210 with SMTP id m18mr2358784wbh.112.1302277935144; Fri, 08 Apr 2011 08:52:15 -0700 (PDT) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id z13sm1790708wbd.12.2011.04.08.08.52.13 (version=SSLv3 cipher=OTHER); Fri, 08 Apr 2011 08:52:14 -0700 (PDT) Message-ID: <4D9F2F2C.2060602@my.gd> Date: Fri, 08 Apr 2011 17:52:12 +0200 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <4D9EFAC6.4020906@lazybytes.org> <7EA5889E-77EF-4BAE-9655-C33692A75602@bsdimp.com> <4D9F2C88.4010205@lazybytes.org> In-Reply-To: <4D9F2C88.4010205@lazybytes.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 15:52:16 -0000 On 4/8/11 5:40 PM, Sergey Vinogradov wrote: > On 08.04.2011 19:23, Warner Losh wrote: >> >> On Apr 8, 2011, at 6:08 AM, Sergey Vinogradov wrote: >> >>> Hi, hackers. >>> I have a question: why ipv4 netmask is displayed by ifconfig in hex >>> format? Isn't dot-decimal notation more human-readable? Will the >>> attached patch break something in the very bad way? >> >> This is a gratuitous change that would break scripts. Hex has been >> used for a very long time, and most people know how to cope. >> >> If we really wanted to make it human readable, we'd output 10.2.3.4/24 >> >> Warner > So, maybe, while following the POLA, we should add an option, as Daniel > mentioned above? To output the CIDR? > Seconded :)