Bug 161335 - [NEW PORT] net/p5-Net-Subnet Fast IP-in-subnet matcher for IPv4 and IPv6, CIDR or mask
Summary: [NEW PORT] net/p5-Net-Subnet Fast IP-in-subnet matcher for IPv4 and IPv6, CID...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 14:50 UTC by Henk van Oers
Modified: 2011-10-26 12:08 UTC (History)
0 users

See Also:


Attachments
file.shar (2.42 KB, text/plain)
2011-10-06 14:50 UTC, Henk van Oers
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henk van Oers 2011-10-06 14:50:06 UTC
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

Fix: Patch attached with submission follows:
How-To-Repeat: Note:

net/p5-Net-Subnets (plural) has disappeared from CPAN.
                 ^
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-10-06 14:50:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perl

perl@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2011-10-25 18:38:57 UTC
Responsible Changed
From-To: perl->sunpoet

I'll take it.
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2011-10-26 12:08:14 UTC
State Changed
From-To: open->closed

Committed. Thanks!