Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Apr 2011 06:44:34 -0400
From:      "J. Hellenthal" <jhell@DataIX.net>
To:        Sergey Vinogradov <boogie@lazybytes.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: [PATCH] ifconfig(8) flag to display IPv4 netmasks in dot-decimal format
Message-ID:  <20110412104433.GA29090@DataIX.net>
In-Reply-To: <4DA2EFEF.3010004@lazybytes.org>
References:  <4DA2EFEF.3010004@lazybytes.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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.

</STRONG-OPINION>

--=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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110412104433.GA29090>