Well, I did that and this is what I got :-)
84.33.59.8:138092893 I tried "forwards" (without reverse) and got another funky IP.
-lost
-----Original Message----- From: Iqbal [mailto:iqbal@gigo.co.uk] Sent: Friday, March 04, 2005 12:28 PM To: Matt Schulte; jh@lohi.tutpro.com Cc: serusers@lists.iptel.org Subject: RE: [Serusers] lcr module and column type in DB
yeah pretty much,
Iqbal
On 3/4/2005, "Matt Schulte" mschulte@netlogic.net wrote:
So, just to clear this up. You still have to reverse the ip, so:
example: 209.247.17.5 reverses to: 5.17.247.209
which long format comes to: 85063633
Thanks .. ??
-----Original Message----- From: Iqbal [mailto:iqbal@gigo.co.uk] Sent: Wednesday, March 02, 2005 2:55 PM To: jh@lohi.tutpro.com Cc: serusers@lists.iptel.org Subject: Re: [Serusers] lcr module and column type in DB
cheers, just what I needed..one thing though I had to reverse the format...not sure if I was doing it wrong or something else.
Anyhow for all those with the same problem manually calculating it is
IP=A.B.C.D
IPlong= A*16777216 + B*65536 + C*256 + D
but as mentioned above I for some reason had to do
D*16777216 + C*65536 + B*256 + A
Iqbal
On 3/2/2005, "Juha Heinanen" jh@lohi.tutpro.com wrote:
Iqbal writes:
Any ideas
yes, you have to put in ip_addr field integer representation of ip address. use, for example, php's ip2long function.
-- juha
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
one of us i doing the maths wrong I get
85063637
Iqbal
On 3/4/2005, "Matt Schulte" mschulte@netlogic.net wrote:
Well, I did that and this is what I got :-)
84.33.59.8:138092893 I tried "forwards" (without reverse) and got another funky IP.
-lost
-----Original Message----- From: Iqbal [mailto:iqbal@gigo.co.uk] Sent: Friday, March 04, 2005 12:28 PM To: Matt Schulte; jh@lohi.tutpro.com Cc: serusers@lists.iptel.org Subject: RE: [Serusers] lcr module and column type in DB
yeah pretty much,
Iqbal
On 3/4/2005, "Matt Schulte" mschulte@netlogic.net wrote:
So, just to clear this up. You still have to reverse the ip, so:
example: 209.247.17.5 reverses to: 5.17.247.209
which long format comes to: 85063633
Thanks .. ??
-----Original Message----- From: Iqbal [mailto:iqbal@gigo.co.uk] Sent: Wednesday, March 02, 2005 2:55 PM To: jh@lohi.tutpro.com Cc: serusers@lists.iptel.org Subject: Re: [Serusers] lcr module and column type in DB
cheers, just what I needed..one thing though I had to reverse the format...not sure if I was doing it wrong or something else.
Anyhow for all those with the same problem manually calculating it is
IP=A.B.C.D
IPlong= A*16777216 + B*65536 + C*256 + D
but as mentioned above I for some reason had to do
D*16777216 + C*65536 + B*256 + A
Iqbal
On 3/2/2005, "Juha Heinanen" jh@lohi.tutpro.com wrote:
Iqbal writes:
Any ideas
yes, you have to put in ip_addr field integer representation of ip address. use, for example, php's ip2long function.
-- juha
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
The correct answer is 85063633
You can find a tool on line for this at http://www.dnsstuff.com/
Regards, Paul
On Fri, 04 Mar 2005 19:09:41 +0000, Iqbal iqbal@gigo.co.uk wrote:
one of us i doing the maths wrong I get
85063637
Iqbal
On 3/4/2005, "Matt Schulte" mschulte@netlogic.net wrote:
Well, I did that and this is what I got :-)
84.33.59.8:138092893 I tried "forwards" (without reverse) and got another funky IP.
-lost
-----Original Message----- From: Iqbal [mailto:iqbal@gigo.co.uk] Sent: Friday, March 04, 2005 12:28 PM To: Matt Schulte; jh@lohi.tutpro.com Cc: serusers@lists.iptel.org Subject: RE: [Serusers] lcr module and column type in DB
yeah pretty much,
Iqbal
On 3/4/2005, "Matt Schulte" mschulte@netlogic.net wrote:
So, just to clear this up. You still have to reverse the ip, so:
example: 209.247.17.5 reverses to: 5.17.247.209
which long format comes to: 85063633
Thanks .. ??
-----Original Message----- From: Iqbal [mailto:iqbal@gigo.co.uk] Sent: Wednesday, March 02, 2005 2:55 PM To: jh@lohi.tutpro.com Cc: serusers@lists.iptel.org Subject: Re: [Serusers] lcr module and column type in DB
cheers, just what I needed..one thing though I had to reverse the format...not sure if I was doing it wrong or something else.
Anyhow for all those with the same problem manually calculating it is
IP=A.B.C.D
IPlong= A*16777216 + B*65536 + C*256 + D
but as mentioned above I for some reason had to do
D*16777216 + C*65536 + B*256 + A
Iqbal
On 3/2/2005, "Juha Heinanen" jh@lohi.tutpro.com wrote:
Iqbal writes:
Any ideas
yes, you have to put in ip_addr field integer representation of ip address. use, for example, php's ip2long function.
-- juha
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Java Rockx wrote:
The correct answer is 85063633
You can find a tool on line for this at http://www.dnsstuff.com/
Or use your own simple one, like:
#include <stdio.h> #include <netinet/in.h> #include <arpa/inet.h>
int main(int argc, char **argv) { struct in_addr a;
if(argc != 2) { fprintf(stderr, "Usage: %s <ip address>\n", argv[0]); return -1; }
if(inet_aton(argv[1], &a) == 0) { fprintf(stderr, "Invalid ip address '%s'\n", argv[1]); return -1; }
fprintf(stdout, "%d\n", a.s_addr);
return 0; }