From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 8 19:00:10 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 3B4601065672 for ; Fri, 8 Apr 2011 19:00:10 +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 D837B8FC12 for ; Fri, 8 Apr 2011 19:00:09 +0000 (UTC) Received: from [192.168.13.4] (unknown [192.168.13.4]) by mail.lazybytes.org (Postfix) with ESMTPSA id C96E2C7A; Fri, 8 Apr 2011 23:00:08 +0400 (MSD) Message-ID: <4D9F5B31.9000509@lazybytes.org> Date: Fri, 08 Apr 2011 23:00:01 +0400 From: Sergey Vinogradov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Mike Bristow References: <4D9EFAC6.4020906@lazybytes.org> <7EA5889E-77EF-4BAE-9655-C33692A75602@bsdimp.com> <4D9F2C88.4010205@lazybytes.org> <20110408155520.GA40792@cheddar.urgle.com> In-Reply-To: <20110408155520.GA40792@cheddar.urgle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (mail.lazybytes.org); Fri, 08 Apr 2011 23:00:08 +0400 (MSD) 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 19:00:10 -0000 08.04.2011 19:55, Mike Bristow пишет: > On Fri, Apr 08, 2011 at 07:40:56PM +0400, Sergey Vinogradov wrote: >> On 08.04.2011 19:23, Warner Losh wrote: >>> On Apr 8, 2011, at 6:08 AM, Sergey Vinogradov wrote: >>> If we really wanted to make it human readable, we'd output 10.2.3.4/24 >> >> So, maybe, while following the POLA, we should add an option, as Daniel >> mentioned above? To output the CIDR? > > Non-contigous netmasks are legal in IPv4. What do you do if someone adds > the CIDR flag but the netmask cannot be represented in CIDR notation? > > Cheers, > Mike And boom goes the dynamite. Reverting to my first proposal about changing only netmask notation. -- wbr, Boo