help converting HEX netmask...

c.hutchinson0 at yahoo.com c.hutchinson0 at yahoo.com
Thu May 3 19:57:24 UTC 2012


Greetings...
On Thu, 3 May 2012 12:50:36 -0400
Jason Hellenthal <jhellenthal at dataix.net> wrote:

> 
> 
> On Tue, May 01, 2012 at 07:44:31PM -0700, c.hutchinson0 at yahoo.com
> wrote:
> > Greetings...
> > On Wed, 2 May 2012 07:01:05 +0700
> > Erich Dollansky <erichfreebsdlist at ovitrap.com> wrote:
> > 
> > > Hi,
> > > 
> > > On Wednesday 02 May 2012 05:48:44 c.hutchinson0 at 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 at freebsd.org mailing list
> > > > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> > > > To unsubscribe, send any mail to
> > > > "freebsd-wireless-unsubscribe at freebsd.org"
> > > > 
> > > > 
> > 
> > _______________________________________________
> > freebsd-wireless at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> > To unsubscribe, send any mail to
> > "freebsd-wireless-unsubscribe at freebsd.org"
> 



More information about the freebsd-wireless mailing list