http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4964





------- Additional Comments From [EMAIL PROTECTED]  2007-01-24 09:43 -------
> no response from Mark; let's stick with CPAN, then.

Sorry folks, I wasn't receiving mail from this bug report
because I'm not the original poster, so I didn't notice a question.

> Mark -- that code, does it support checking if a n.n.n.n/m CIDR-specified
> network range is contained by another CIDR-specified range?

No, it only checks a single address against a list of CIDR networks
or plain addresses, the list is traversed linearly, first match wins
and may provide a true or false result (allowing for hierarchical
exceptions to be specified). The list is pre-parsed for speed.

> if so, I think I'd like to get it into NetSet.pm. to be honest,
> I share your thoughts about NetAddr::IP and the like, they all
> look very heavyweight -- certainly a lot more heavy than 160
> lines of perl.

I'll leave the decision on choice between Net::CIDR::Lite and my
code to you, as I'm not particularly familiar with Net::CIDR::Lite.
My routine is heavily relied-on in amavisd-new, and the project
is very much alive and kicking, so there is no fear it will be
abandoned any time soon. There are hardly change in code since
the version I provided a link to. Let me know if example usage code
would be needed. As for integration with SA I believe others are
more qualified, but I'm willing to help if needed.

If queries on whole subnets are required and frequent, my code
may not be the right choice (or should be extended).






------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to