From owner-freebsd-current@FreeBSD.ORG Wed Apr 13 13:02:15 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 189361065670 for ; Wed, 13 Apr 2011 13:02:15 +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 C56508FC19 for ; Wed, 13 Apr 2011 13:02:14 +0000 (UTC) Received: from [95.108.170.237] (dhcp170-237-red.yandex.net [95.108.170.237]) by mail.lazybytes.org (Postfix) with ESMTPSA id 46A0A95B; Wed, 13 Apr 2011 17:02:12 +0400 (MSD) Message-ID: <4DA59F0C.3060708@lazybytes.org> Date: Wed, 13 Apr 2011 17:03:08 +0400 From: Sergey Vinogradov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Lanikai/3.1.9 MIME-Version: 1.0 To: gljennjohn@googlemail.com References: <4DA2EFEF.3010004@lazybytes.org> <20110411171713.144d9a72@ernst.jennejohn.org> In-Reply-To: <20110411171713.144d9a72@ernst.jennejohn.org> 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); Wed, 13 Apr 2011 17:02:13 +0400 (MSD) 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: Wed, 13 Apr 2011 13:02:15 -0000 On 11.04.2011 19:17, Gary Jennejohn wrote: > On Mon, 11 Apr 2011 16:11:27 +0400 > Sergey Vinogradov wrote: > >> 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: >> >> % ifconfig msk0 >> msk0: flags=8843 metric 0 mtu 1500 >> >> options=c011a >> ether 00:16:e6:88:0f:89 >> inet 10.10.0.1 netmask 0xffffff00 broadcast 10.10.0.255 >> media: Ethernet autoselect (none) >> status: no carrier >> >> % ifconfig -t msk0 >> msk0: flags=8843 metric 0 mtu 1500 >> >> options=c011a >> ether 00:16:e6:88:0f:89 >> inet 10.10.0.1 netmask 255.255.255.0 broadcast 10.10.0.255 >> media: Ethernet autoselect (none) >> status: no carrier >> >> There was a discussion [1] in freebsd-hackers@ about adding such >> functionality to ifconfig(8), which urged me write this patch. The >> default behavior of ifconfig(8) is kept unmodified, so there shouldn't >> be any compatibility breakages. At least, it works fine for me :) >> >> [1] >> http://lists.freebsd.org/pipermail/freebsd-hackers/2011-April/034997.html >> > > Looks good, except I'd change this line to read like this: > +The > +.Fl t > +flag makes IPv4 netmasks being displayed in dotted decimal notation. > ^^^^^ results in > Note taken, fix will appear in the next patch version (if any). -- wbr, Boo