From owner-freebsd-questions Wed Jul 12 8:15:49 2000 Delivered-To: freebsd-questions@freebsd.org Received: from theory1.physics.iisc.ernet.in (theory1.physics.iisc.ernet.in [144.16.71.20]) by hub.freebsd.org (Postfix) with SMTP id E873937BF48 for ; Wed, 12 Jul 2000 08:15:41 -0700 (PDT) (envelope-from rsidd@physics.iisc.ernet.in) Received: (qmail 4366 invoked from network); 12 Jul 2000 15:15:37 -0000 Received: from unknown (HELO theory3.physics.iisc.ernet.in) (qmailr@144.16.71.158) by theory1.physics.iisc.ernet.in with SMTP; 12 Jul 2000 15:15:37 -0000 Received: (qmail 1286 invoked by uid 211); 12 Jul 2000 15:15:36 -0000 Date: Wed, 12 Jul 2000 20:45:36 +0530 From: Rahul Siddharthan To: Stephen Hovey Cc: Alejandro Ramirez , freebsd-questions@FreeBSD.ORG Subject: Re: IP Address Convertion Formula??? Message-ID: <20000712204536.A1281@physics.iisc.ernet.in> Mail-Followup-To: Stephen Hovey , Alejandro Ramirez , freebsd-questions@FreeBSD.ORG References: <00b701bfec12$21ee6020$02c134c8@megared.net.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from shovey@buffnet.net on Wed, Jul 12, 2000 at 11:07:43AM -0400 X-Operating-System: Linux 2.4.0-test3 i686 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It's the raw base 16 representation (or base 256 depending on how you want to look at it), and the direction is forwards -- ie, 64.19.207.19 = 64*256^3+19*256^2+207*256+19 (you can back-translate it either by dividing by powers of 256 successively, or simply by "pinging" the long number.) Rahul. Stephen Hovey said on Jul 12, 2000 at 11:07:43: > > I believe its the raw base 10 integer representation of the dot quad value > - but a Im not sure in which direction the significant bytes are ordered > (in other words, if you took the 4 numbers in the dot quad, and looked at > them as a long 4 byte integer, each value to its own byte, but In your > example, I dont know if you look at the integer as 19 207 19 64 - or 64 19 > 207 19) > > On Wed, 12 Jul 2000, Alejandro Ramirez wrote: > > > Hi All, > > > > I suppose that there is a formula to translate an address like > > "1075040019" into 64.19.207.19, does anybody know something about it that > > could explain to me???, or where can I see information about this. > > > > Thanks in Advance > > Ales > > > > > > > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message