Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 May 2012 12:56:14 -0700
From:      c.hutchinson0@yahoo.com
To:        Jason Hellenthal <jhellenthal@dataix.net>
Cc:        freebsd-wireless@freebsd.org
Subject:   Re: help converting HEX netmask...
Message-ID:  <20120503125614.75b091b3@udns.ultimateDNS.NET>
In-Reply-To: <20120503165036.GA80690@DataIX.net>
References:  <20120501154844.45cc2f37@virus.local> <201205020701.05991.erichfreebsdlist@ovitrap.com> <20120501194431.7d9c91c7@virus.local> <20120503165036.GA80690@DataIX.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Greetings...
On Thu, 3 May 2012 12:50:36 -0400
Jason Hellenthal <jhellenthal@dataix.net> wrote:

> 
> 
> 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 <erichfreebsdlist@ovitrap.com> 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

LOL! You're good at this. :-)
In an effort to get better at "bit twiddling", I'm building
a page that'll convert to-from -- from-to about anything I
think I'll ever have to come up against. This project, of course,
forces me to start remembering all that math I learned in school. ;)

Thanks for the reply!

--Chris

> 
> > 
> > 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"
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120503125614.75b091b3>