aboutsummaryrefslogtreecommitdiff
path: root/net/p5-Net-Subnet/pkg-descr
blob: d696dfff908a6e41549c3a43b728e0c2786a0ee4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
This is a simple but fast pure Perl module for determining whether a given IP
address is in a given set of IP subnets. It's iterative, and it doesn't use any
fancy tries, but because it uses simple bitwise operations on strings it's still
very fast.

All documented functions are exported by default.

Subnets have to be given in "address/mask" or "address/length" (CIDR) format.
The Socket and Socket6 modules are used to normalise addresses, which means that
any of the address formats supported by inet_aton and inet_pton can be used with
Net::Subnet.

WWW: https://metacpan.org/release/Net-Subnet