net/p5-Net-Subnet 1.03_1 FreeBSD
Fast IP-in-subnet matcher for IPv4 and IPv6, CIDR or mask
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10
- Categories
- net, perl5
- Package size
- 9.1 KiB, 16.0 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 |
|---|---|---|
| FreeBSD | net/p5-Net-Subnet | 1.03_1 |
| DragonFly | net/p5-Net-Subnet | 1.03_1 |
Install
Binary package:
pkg install p5-Net-Subnet
From the ports tree:
cd /usr/ports/net/p5-Net-Subnet/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Net-Subnet>0:net/p5-Net-Subnet
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.03_1 | 1.03_1 | 1.03_1 | 1.03_1 | 1.03_1 |
| FreeBSD:14:quarterly | 1.03_1 | 1.03_1 | n/a | 1.03_1 | 1.03_1 |
| FreeBSD:15:latest | 1.03_1 | 1.03_1 | n/a | 1.03_1 | 1.03_1 |
| FreeBSD:15:quarterly | 1.03_1 | 1.03_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.03_1 | 1.03_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
p5-Socket6>=0.23: net/p5-Socket6
Runtime 1
p5-Socket6>=0.23: net/p5-Socket6
The full lists below include those, and their dependencies in turn.
Build dependencies 2
Run dependencies 2
No port depends on this one.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%PERL5_MAN3%%/Net::Subnet.3.gz
- %%SITE_PERL%%/Net/Subnet.pm
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Net-Subnet-1.03.tar.gz | 4305 | 125e6db64c98026439f9b585115f94f42315a31d8f16ca63d0c939ab66019afa |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.