From owner-freebsd-net@FreeBSD.ORG Wed Sep 8 23:25:26 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7823C16A4D0 for ; Wed, 8 Sep 2004 23:25:26 +0000 (GMT) Received: from outbound0.sv.meer.net (outbound0.sv.meer.net [205.217.152.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E48F43D2D for ; Wed, 8 Sep 2004 23:25:26 +0000 (GMT) (envelope-from gnn@neville-neil.com) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) i88NP3r2020055; Wed, 8 Sep 2004 16:25:04 -0700 (PDT) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (pc1.oakwoodazabu1-unet.ocn.ne.jp [220.110.140.201]) by mail.meer.net (8.12.1/8.12.2/meer) with ESMTP id i88NP1lL005461; Wed, 8 Sep 2004 16:25:01 -0700 (PDT) (envelope-from gnn@neville-neil.com) Date: Thu, 09 Sep 2004 08:24:59 +0900 Message-ID: From: "George V. Neville-Neil" To: Artis Caune In-Reply-To: <1094660258.1597.405.camel@localhost> References: <1094660258.1597.405.camel@localhost> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.5 Emacs/21.2 (powerpc-apple-darwin) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: ifconfig.c && netmask X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.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: Wed, 08 Sep 2004 23:25:26 -0000 At Wed, 08 Sep 2004 19:17:38 +0300, Artis Caune wrote: > > How come that ifconfig prints netmask in hex? > > Isn't > "inet 127.0.0.1 netmask 255.0.0.0" > more readable than > "inet 127.0.0.1 netmask 0xff000000" > > why 'route get x.x.x.x' gives mask in decimal? > ;)) > > > Is it some posix standart or something historical or will it brake some > scripts? > It's historical. Later, George