From owner-freebsd-questions Wed Nov 20 3:15:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21A3137B401 for ; Wed, 20 Nov 2002 03:15:09 -0800 (PST) Received: from aph2k.internal.aphnet.co.uk (mailgate.aphnet.co.uk [62.49.140.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2CA043E42 for ; Wed, 20 Nov 2002 03:15:04 -0800 (PST) (envelope-from rob@aphnet.co.uk) Received: from robltop.aphnet.co.uk ([192.168.5.22]) by aph2k.internal.aphnet.co.uk with Microsoft SMTPSVC(5.0.2195.5329); Wed, 20 Nov 2002 11:10:11 +0000 Message-Id: <5.1.1.6.0.20021120110316.01fa4108@aph2k> X-Sender: rob@aph2k X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Wed, 20 Nov 2002 11:12:47 +0000 To: Matthew Seaman , budsz From: Rob O'Donnell Subject: Re: question on IP alias/broadcast Cc: freebsd-questions@freebsd.org 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-OriginalArrivalTime: 20 Nov 2002 11:10:11.0203 (UTC) FILETIME=[64906530:01C29085] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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