Hello there,
I am looking forward a CIDR parsing code to check if an accessing IP is belonging to a specific CIDR.
Idealy I'd like something like this :
IP_check("192.168.2.0/24")->check("192.168.1.1");
This will return 0 if its doesn't belong to the specified CIDR or 1 it is ok ...
Any clues ?
/Xavier