net/p5-Net-Subnet 1.03_1 DragonFly
Fast IP-in-subnet matcher for IPv4 and IPv6, CIDR or mask
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10
- Categories
- net, perl5
- Package size
- 8.7 KiB, 16.2 KiB installed
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | net/p5-Net-Subnet | 1.03_1 |
| FreeBSD | net/p5-Net-Subnet | 1.03_1 |
| HardenedBSD | net/p5-Net-Subnet | 1.03_1 |
| GhostBSD | net/p5-Net-Subnet | 1.03_1 |
Install
Binary package:
pkg install p5-Net-Subnet
From DPorts:
cd /usr/dports/net/p5-Net-Subnet && make install clean
Dependencies
Run dependencies 2
No port depends on this one.