From owner-freebsd-wireless@FreeBSD.ORG Thu May 3 16:50:42 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C7F21065672 for ; Thu, 3 May 2012 16:50:42 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 034268FC08 for ; Thu, 3 May 2012 16:50:41 +0000 (UTC) Received: by yhgm50 with SMTP id m50so1936226yhg.13 for ; Thu, 03 May 2012 09:50:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=TxFo3dnlwulsiawzQQ99Jd1Ke7LNF19zzpYyVha+xtQ=; b=CxWAuBK57nAM5lDWh/cA0f7ZMLkfaVB+LLzC8sfwuR7FMGwTVPpdBcNnf0KJb0IqZR adktpsL+TOebfoJfzwXIRy+WbHbciE4RgAK+zkLmoVmS7fMozAmG2gbRCid3zlFY2Z79 AlRf+t2seHtDIFwCNAnTX/KOBumzHqgooX8BA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=TxFo3dnlwulsiawzQQ99Jd1Ke7LNF19zzpYyVha+xtQ=; b=JFu5KAl71z+6t2WJdTj0iciDUJWSZMnfJXdVqTQOr5BElnrzujcWtjeU88Iut34p9n lpNTdRAQw2UpAUGDbucB6YQ/NrbPxMkGcq7qo3vdcR1HtlIENjA82CxO5UAyD1kSJ14/ 1FUF2Ce42IheUtl9b7Tw6Pwm6VnTYMjwXjSojgoqZEuuwp2DDAv/RCmm22nBIp3lmbGW gnutSpE1/QMPtiZUp500kU4LKe3h92AJVWhobJVlaZPomhQ1M2T8MHDiheo05EHfFwGG TdKfhS8d2W5EVqg1Ks1QQO9877ZKRbzlrCbWQRLNp5dcfsKyxV1rHA4JiMB90IJMRXI2 G8/A== Received: by 10.50.219.170 with SMTP id pp10mr1146817igc.25.1336063840995; Thu, 03 May 2012 09:50:40 -0700 (PDT) Received: from DataIX.net (adsl-99-181-159-184.dsl.klmzmi.sbcglobal.net. [99.181.159.184]) by mx.google.com with ESMTPS id hq3sm610119igc.0.2012.05.03.09.50.40 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 May 2012 09:50:40 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q43Goc3R062490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 May 2012 12:50:38 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jhellenthal@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q43GoabB059520; Thu, 3 May 2012 12:50:36 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Thu, 3 May 2012 12:50:36 -0400 From: Jason Hellenthal To: c.hutchinson0@yahoo.com Message-ID: <20120503165036.GA80690@DataIX.net> References: <20120501154844.45cc2f37@virus.local> <201205020701.05991.erichfreebsdlist@ovitrap.com> <20120501194431.7d9c91c7@virus.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120501194431.7d9c91c7@virus.local> X-Gm-Message-State: ALoCoQlI68yaTdfmV+EvMXSvMMH9Tth9yWT+3xRCXF8ey1VvWRTaLTOA9bNhcX6eMzWPtiljJIVg Cc: freebsd-wireless@freebsd.org Subject: Re: help converting HEX netmask... X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 May 2012 16:50:42 -0000 On Tue, May 01, 2012 at 07:44:31PM -0700, c.hutchinson0@yahoo.com wrote: > Greetings... > On Wed, 2 May 2012 07:01:05 +0700 > Erich Dollansky wrote: > > > Hi, > > > > On Wednesday 02 May 2012 05:48:44 c.hutchinson0@yahoo.com wrote: > > > Greetings, > > > This may seem dim to some of you, but I have a question regarding > > > (determining) the netmask, from the output of ifconfig(8). > > > Mine is returned as: > > > 0xffffe000 > > > > you take a calculator which is able to convert hex to dec but you > > have to break the number up into fields like: > > > > ff > > ff > > e0 > > 00 > Right you are! Which brings us: > 255.255.224.0 range: 192.168.0.0 > 192.168.31.255 range b10: 3232235520 > 3232243711 range b16: 0xc0a80000 > 0xc0a81fff hosts: 8192 prefixlen: 19 mask: 255.255.224.0 > > Thanks for the response -- and answer. :-) > > > > > Erich > > > > > > Any help greatly appreciated. > > > Apologies should this be stupid. > > > _______________________________________________ > > > freebsd-wireless@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > > > To unsubscribe, send any mail to > > > "freebsd-wireless-unsubscribe@freebsd.org" > > > > > > > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" -- - (2^(N-1))