Raised This Month: $ Target: $400
 0% 

How to define a large integer?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wwzw
Member
Join Date: Feb 2009
Old 11-02-2011 , 11:33   Re: How to define a large integer?
Reply With Quote #9

My IP address data like this:
0.0.0.0 0.255.255.255 IANA reserved address
......
192.168.0.0 192.168.255.255 Lan
......
Style in the database:
ipfrom ipto address
0 16777215 IANA reserved address
......
3232235520 3232301055 Lan
......

If I want to check the IP address 192.168.1.101 come from.
First I must change 192.168.1.101 converted to digital: 3232235877(192*256*256*256+168*256*256+1*256+ 101), and then query the database to get the final result is "Lan"

Last edited by wwzw; 11-02-2011 at 11:34.
wwzw is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode