From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 8 15:27:23 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 83CBD1065670 for ; Fri, 8 Apr 2011 15:27:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 4686E8FC17 for ; Fri, 8 Apr 2011 15:27:23 +0000 (UTC) Received: from 63.imp.bsdimp.com (63.imp.bsdimp.com [10.0.0.63]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p38FN5Cn029903 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Fri, 8 Apr 2011 09:23:06 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <4D9EFAC6.4020906@lazybytes.org> Date: Fri, 8 Apr 2011 09:23:05 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <7EA5889E-77EF-4BAE-9655-C33692A75602@bsdimp.com> References: <4D9EFAC6.4020906@lazybytes.org> To: Sergey Vinogradov X-Mailer: Apple Mail (2.1082) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Fri, 08 Apr 2011 09:23:06 -0600 (MDT) 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 15:27:23 -0000 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