Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2002 11:12:47 +0000
From:      Rob O'Donnell <robert@aphnet.co.uk>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>, budsz <budsz@kumprang.or.id>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: question on IP alias/broadcast
Message-ID:  <5.1.1.6.0.20021120110316.01fa4108@aph2k>
In-Reply-To: <20021117081620.GA19147@happy-idiot-talk.infracaninophi>
References:  <20021117070457.GB45577@kumprang.or.id> <058f01c28d76$22296230$020aa8c0@morpheous> <5.2.0.9.2.20021116082511.00b26508@molson.wixb.com> <20021116162134.GB12726@happy-idiot-talk.infracaninophi> <20021117070457.GB45577@kumprang.or.id>

next in thread | previous in thread | raw e-mail | index | archive | help
At 08:16 17/11/2002 +0000, Matthew Seaman wrote:
>On Sun, Nov 17, 2002 at 02:04:57PM +0700, budsz wrote:
> > On Sat, Nov 16, 2002 at 04:21:34PM +0000, Matthew Seaman wrote:
> > >expressed as a hexadecimal or even decimal integer.  thus:
> > >
> > >    192.168.100.1 is the same as 0xc0a86401 or 3232261121
> > >                                               ^^^^^^^^^^
> > >and
> > >
> > >    0xffffff00 is the same as 255.255.255.0 or 4294967040
> >                                                 ^^^^^^^^^^
> >
> > Sorry sir, How we calculate that number (Decimal Interger)?, I hope
> > explaination step by step?
>
>Simple enough:
>
>This perl snippet will convert a dotted quad address into an integer:
>
[snip]

isn't it basically:     192 * 2^24 + 168 * 2^16 + 100 * 2^8 + 1


-- 
APH Computers Ltd.
Tel: 0161-442 2603
Fax: 0161-443 1162


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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