Class NetUtils.IpRangeLookup
- Description
Class used for checking an IP against a list of IP ranges and looking up some associated information.
- Method
create
NetUtils.IpRangeLookup NetUtils.IpRangeLookup(
mapping
(mixed
:array
(string
))ranges
)- Description
Creates a new IpRangeLookup object and initialises the IP range table. Errors will be thrown if ranges contains invalid data.
- Parameter
ranges
A mapping from information data to arrays of IP ranges.
Each range can be a single addresses ("192.168.1.1"), a range of addresses ("192.168.1.1-192.168.1.5") or be written in CIDR notation ("192.168.1.0/24").