Hi,
How could I get a /22 network address from an IP address?
Like:
/24 of 193.95.221.54 is 193.95.221.0
/16 of 193.95.221.54 is 193.95.0.0
/8 of 193.95.221.54 is 193.0.0.0
/22 of 193.95.221.54 is 193.95.X.0
I'd like to cache GeoIP data for 1024 IP addresses with a single cache entry to conserve cache space and number of lookups (GeoIP database is 25 MB).