Once you have INTs, and you mask them against the relevent netmask, you can merely do an AND to determine if they're in the same subnet. This also allows non-octet aligned subnets (for example, 10.53.80.0/24)
--
RatArsed
In reply to Re: IP Verification Check System
by RatArsed
in thread IP Verification Check System
by LostS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |