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 [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to