From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 8 19:20:15 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 1ED621065673 for ; Fri, 8 Apr 2011 19:20:15 +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 CCBD08FC0C for ; Fri, 8 Apr 2011 19:20:14 +0000 (UTC) Received: from [10.30.101.53] ([209.117.142.2]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p38JGNBd031964 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Fri, 8 Apr 2011 13:16:24 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=utf-8 From: Warner Losh In-Reply-To: <4D9F5B31.9000509@lazybytes.org> Date: Fri, 8 Apr 2011 13:16:17 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <8B793E28-0426-46CC-AB10-E0257AF6707D@bsdimp.com> References: <4D9EFAC6.4020906@lazybytes.org> <7EA5889E-77EF-4BAE-9655-C33692A75602@bsdimp.com> <4D9F2C88.4010205@lazybytes.org> <20110408155520.GA40792@cheddar.urgle.com> <4D9F5B31.9000509@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 13:16:25 -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 19:20:15 -0000 On Apr 8, 2011, at 1:00 PM, Sergey Vinogradov wrote: > 08.04.2011 19:55, Mike Bristow =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> 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 >>>=20 >>> So, maybe, while following the POLA, we should add an option, as = Daniel >>> mentioned above? To output the CIDR? >>=20 >> 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? >=20 > And boom goes the dynamite. Reverting to my first proposal about = changing only netmask notation. Non-contiguous netmasks are *not* legal anymore in IPv4. They have gone = the way of the dodo. While some stacks still support it, a growing = number of an interesting number of bugs with them that actual = deployments with non-contiguous submasks becomes more hassle than it is = worth. Warner