From owner-freebsd-net@FreeBSD.ORG Thu Feb 12 09:53:39 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 594B18C1 for ; Thu, 12 Feb 2015 09:53:39 +0000 (UTC) Received: from smtp-outbound.userve.net (smtp-outbound.userve.net [217.196.1.22]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.userve.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DBD18867 for ; Thu, 12 Feb 2015 09:53:38 +0000 (UTC) Received: from owa.usd-group.com (owa.usd-group.com [217.196.1.2]) by smtp-outbound.userve.net (8.14.7/8.14.7) with ESMTP id t1C9rGYg056917 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 12 Feb 2015 09:53:16 GMT (envelope-from matt.churchyard@userve.net) Received: from SERVER.ad.usd-group.com (192.168.0.1) by SERVER.ad.usd-group.com (192.168.0.1) with Microsoft SMTP Server (TLS) id 15.0.516.32; Thu, 12 Feb 2015 09:53:15 +0000 Received: from SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9]) by SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9%12]) with mapi id 15.00.0516.029; Thu, 12 Feb 2015 09:53:15 +0000 From: Matt Churchyard To: "Matthew D. Fuller" Subject: RE: Invalid subnet masks Thread-Topic: Invalid subnet masks Thread-Index: AdBF2FIuD1FE1aNwSWOzQAqD5/KpzwASS8SAAABl7w0ADRiaAAATMrmw Date: Thu, 12 Feb 2015 09:53:15 +0000 Message-ID: References: <7e069c1946454793b1c7e0be988877c4@SERVER.ad.usd-group.com> <20150212000434.GA15127@over-yonder.net> In-Reply-To: <20150212000434.GA15127@over-yonder.net> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.0.10] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Warren Block , "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2015 09:53:39 -0000 > On Wed, Feb 11, 2015 at 05:49:35PM +0000 I heard the voice of Matt Church= yard, and lo! it spake thus: > > > On 11 Feb 2015, at 17:38, Warren Block wrote: > > > ifconfig em0 inet 192.168.1.1/24 > >=20 > > Yeah I've been using that format in rc.conf for years. Quicker to type= =20 > > and looks tidy. > Ditto. Though in the grand tradition of being given the inch and lusting= after the mile, it makes me grumpy seeing the dotted-quad netmask in 'ifco= nfig' output, making me have to work > to see if the > match and back-convert to add things. 8-} It's actually hex format in ifconfig unless I'm missing something ;)=20 The discussion on -hackers linked earlier in this thread was actually a con= versation about changing the output to dotted quad, then it moved on to pro= viding a switch to allow users to specify dotted quad or CIDR notation. Obv= iously it was never implemented although you don't really want to mess with= the output of established core commands unless there's good reason.