Bug#113260: ITP: libnet-grpnetworks-perl -- modified CPAN module to determine IP network membership
Version: N/A; reported 2001-09-23
On CPAN, there is a module called Net::GrpNetworks that contains a
perl library that allows to determine if a given IP address is in a
range of networks.
my $sitelocal = new Net::GrpNetworks();
$sitelocal->add("172.16" , "172.16.0.0/12");
will give a nonzero return value if $ip is a site local IP address,
and it will also indicate which of these networks the IP address
belongs to. This comes in handy for accounting systems.
Copyright (c) 1997 Andre Rodrigues Viegas. All rights reserved. This
program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
However, the original CPAN code does use ineffective data structures
and doesn't handle overlapping IP ranges. I have modified the library
to use hashes and always return the most specific network range that
the IP applies to. Andre agreed to incorporate my changes into his
code in March 2001 and then stopped answering my e-mails. I am now
ready to do a fork of my code and upload that code to Debian.
Now I need an idea for a new package name since I obviously can't use
Net::GrpNetworks if I fork from Andre's code. Does anybody have an
idea how to name that package? Or is there something in Debian that
can do the same?
-- System Information
Debian Release: 2.2
Kernel: Linux torres 2.4.9 #1 Mon Aug 20 14:44:37 CEST 2001 i586