You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2008/03/11 01:14:51 UTC

[Bug 4964] Mail::SpamAssassin::NetSet: remove custom code, use CPAN module, support IPv6

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





--- Comment #15 from Justin Mason <jm...@jmason.org>  2008-03-10 17:14:50 PST ---
Created an attachment (id=4269)
 --> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4269)
first draft, tests failing

looking into this.  Here's a first draft which adds ipv6 support using Net::IP.
however, these tests don't yet pass:

+ok (tryone ("127.0.0.1", "::ffff:127.0.0.0/24"));
+ok (tryone ("127.0.0.1", "::ffff:127.0.0.1"));
+ok (tryone ("127.0.0.1", "::ffff:7f00:0001"));

it appears Net::IP doesn't support recognition of the equivalency/containment
of IPv4 addresses in IPv6 specifications.  not great :(

judging by classes in the SPF distro, NetAddr::IP doesn't either, so that won't
be much help.


-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.