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"