[Mimedefang] News on Patricia

Philip A. Prindeville philipp_subx at redfish-solutions.com
Wed Nov 11 17:04:16 EST 2009


There were previous issues with Net::Patricia that caused its use to be
problematic.

https://rt.cpan.org/Ticket/Display.html?id=14244

I've taken over ownership of the Net::Patricia module, and have fixed
this issue.

I'm also thinking about adding opaque blob matching, so that it can be
used on DNS matches (you would of course have to resequence the domain
components or the characters themselves first to be able to use it, such as:

my $blob = join('.', reverse(split(/\./, $domain_name)));

Unfortunately, the search library right now would be inefficient because
of the way that it was implemented (it makes a worst-case assumption
about there potentially being a fork at every bit in the tree...  so for
a 128-bit IPv6 address, it would expect to have a stack 128 entries
deep... this doesn't seem realistic, and I'll work on it when I have
time; obviously for domain strings longer than 16 bytes this would be
even worse).

But for now, it works well enough with IPv4 and IPv6 addresses.

Send me any questions you have.

Thanks,

-Philip




More information about the MIMEDefang mailing list