Subject: | bug-Net-Abuse-Utils |
Date: | Mon, 12 Dec 2011 11:46:26 -0500 |
To: | bug-Net-Abuse-Utils [...] rt.cpan.org, mgreb [...] linode.com |
From: | Tim <tim [...] phishlabs.com> |
Net-Abuse-Utils
Module Version: 0.11
perl 5, version 12, subversion 3 (v5.12.3)
Darwin Kernel Version 11.2.0
The get_asn_info() function does not return the smallest subnet in all cases.
While the get_asn_info() function does scan for the smallest subnet it saves the key as the smallest asn to the record of returned ask subnets. Therefore when there are multiple subnets returned with the same asn the function will just return the first one found rather than the actual smallest subnet.
For example:
dig +short 84.210.67.212.origin.asn.cymru.com TXT
"20738 | 212.67.192.0/19 | GB | ripencc | 1999-05-12"
"20738 | 212.67.210.0/24 | GB | ripencc | 1999-05-12"
In this case the 212.67.192.0/19 subnet is returned since the $smallest_asn == 20738.
If this module is under continued development please indicate a release/fix timeframe.
Thank you,
Tim Dunlevy