From owner-freebsd-current@FreeBSD.ORG Tue Apr 12 10:44:43 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFA2B106566B for ; Tue, 12 Apr 2011 10:44:42 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id A5C4D8FC1B for ; Tue, 12 Apr 2011 10:44:42 +0000 (UTC) Received: by iwn33 with SMTP id 33so7930167iwn.13 for ; Tue, 12 Apr 2011 03:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:x-openpgp-key-id:x-openpgp-key-fingerprint :x-openpgp-key-url; bh=A5Tc3+ZX7BPMDpqE56Idz5vbXTOjwhqjIVtMDWaJNu8=; b=FQGBND3RHrJ8zF9I58zJTSRTZ/NOAqjtjQ8rytKA7pmSfvVv21HwXaYUjAz8/WHTDw P58fMDO9sxb4EUMimQyxUjLEq2YJTd2hfvOSUemfQr6WzVn//0mevtS+KafmRms+5AUF 96ZrjX5ARIcfQCY6XWHm76strSZIRfYNeuqiw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-openpgp-key-id :x-openpgp-key-fingerprint:x-openpgp-key-url; b=k5c96h7fAmFoPUllwOO49DKqhONRHaRRF0NB0pjx5S458i+m7zGS3FmvPZMQxSSFce 0J+wmHp1dtFys/GVnY/wp4cOa0oxlK/CCrppPSW+h/2lbK37FFselPryzKdDuYApk+jU iY9Sccb/TF5eOuFJ3xUJEPjm8TCQppH3eM7dg= Received: by 10.42.161.197 with SMTP id u5mr9725548icx.466.1302605081998; Tue, 12 Apr 2011 03:44:41 -0700 (PDT) Received: from DataIX.net (adsl-99-181-151-134.dsl.klmzmi.sbcglobal.net [99.181.151.134]) by mx.google.com with ESMTPS id d9sm4871264ibb.36.2011.04.12.03.44.39 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Apr 2011 03:44:40 -0700 (PDT) Sender: "J. Hellenthal" Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.4/8.14.4) with ESMTP id p3CAiaHu041629 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 12 Apr 2011 06:44:37 -0400 (EDT) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.4/8.14.4/Submit) id p3CAiYMf041589; Tue, 12 Apr 2011 06:44:34 -0400 (EDT) (envelope-from jhell@DataIX.net) Date: Tue, 12 Apr 2011 06:44:34 -0400 From: "J. Hellenthal" To: Sergey Vinogradov Message-ID: <20110412104433.GA29090@DataIX.net> References: <4DA2EFEF.3010004@lazybytes.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline In-Reply-To: <4DA2EFEF.3010004@lazybytes.org> X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E X-OpenPGP-Key-URL: http://bit.ly/0x89D8547E Cc: freebsd-current@freebsd.org Subject: Re: [PATCH] ifconfig(8) flag to display IPv4 netmasks in dot-decimal format X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2011 10:44:43 -0000 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 11, 2011 at 04:11:27PM +0400, Sergey Vinogradov wrote: >Hi, >I've written a tiny-tiny patch, which adds the '-t' flag to >ifconfig(8). It modifies the output to display IPv4 netmasks in dotted >decimal notation: > Sorry but as much as I would like to see this happen and change the display of the netmask I just cannot seem to come to a genuine consensus that justifies adding a '-t' flag or any flag for that matter just to modify the output of one field in the display of ifconfig(8) In general flags to programs usually should carry some sort of meaning to what they are meant to do and I dont really see that for '-t' and netmask display. What I feel would be a better approach to this is checking the environ(7) for some sort of variable that can be specified on a per-user basis or the system as a whole. As to what that variable would be called I could only suggest in a naming convention to be ``HUMANIZE'' or something similiar and then ifconfig(8) could be the first consumer of that variable and probably shortly following du(1) & df(1). This variable could also be one that acts as BLOCKSIZE does to df(1) output and also be available for consumption by other utilities that may need fine tuning without breaking existing interfaces. --=20 Regards, J. Hellenthal --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) Comment: http://bit.ly/0x89D8547E iQEcBAEBAgAGBQJNpC0RAAoJEJBXh4mJ2FR+EVsIAIfhHRL9qSsiiCw8k0aLecBt 4lAbXEvD0oHsY6bVYye/SHpBSS8e5qdKxpMKRL6zLJWcqV1CjFF7CInrMvsGNnRN lfmk0qibHfpKpVOUSr4HH38YUBDXpRObY9x1VkZ27UHPho+5SO6aADEzOf5CQ0V5 luohivA4FMCZ1EuPRLqdPhPtlANZKgQXFKqNv9ZUY+eOYN8XI/puTu9TeA+31m8M sOts1cktrpetCspdAfyh7W1GzsFFAlISe/N1x+ZlkdQZwq2ds3fuapBk+GO1SxXY kDTfeugJljjZYp8aZxYKjlbXx6NxBFAPZBMBiJCDLmm2BTy6WC9DRCbEd9HKQnY= =WUvQ -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--