Méthode |
Description |
|
cidr4Match ( string $ip, string $range ) : boolean |
Check an IPv4 address is in a subnet |
|
cidr6Match ( string $ip, string $range ) : boolean |
Check an IPv6 address is in a subnet |
|
cidrMatch ( string $ip, string $range ) : boolean |
Check if an IP address is in a subnet |
|
expandIPv6 ( string $ip ) : string |
Expand a short IPv6 |
|
expandIPv6InFilters ( string &$ip ) |
Expand all IPv6 addresses in a filter |
|
getBinaryMask ( integer $mask ) : string |
Fetch the binary representation of a mask |
|
isAllowed ( string $ip ) : boolean |
See if an IP address is allowed |
|
isIPv4 ( string $ip ) : boolean |
Check if an IP address ia an IPv4 address or not |
|
isIPv6 ( string $ip ) : boolean |
Check if an IP address is an IPv6 address or not |
|