The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Changes for version 0.200000 - 2016-03-31

  • BACKWARDS INCOMPATIBILITIES
    • When calling $tree->write_tree(), this module now defaults to removing reserved and private networks from the tree before writing the tree to the filehandle. If you want to create a tree that contains private networks, set the constructor parameter "remove_reserved_networks" to false. This change of behavior was done to allow code that previously used Net::Works::Network->range_as_subnets() to the new insert_range() method added in this release.
    • When recursively merging a subtree, alias nodes are no longer followed. Although this is a behavior change, it should not affect most users are previously aliasing was done when the tree was written.
  • ENHANCEMENTS
    • This module no longer used Net::Works internally. This was done to improve performance.
    • Added MaxMind::DB::Writer::Tree->insert_range() method to provide a mechanism for adding IP address ranges that are not well-defined networks.
    • Added MaxMind::DB::Writer::Tree->remove_network() to allow for removing a network from a tree.
  • BUGFIXES
    • Previously, inserting IPv6-mapped IPv4 addresses into a IPv6 tree with IPv4 aliasing enabled could result in a corrupt search tree unless the deprecated "::a.b.c.d" mapping was used. This happened because the IPv4 aliasing was only done after all of the data had been inserted.

Modules

Create MaxMind DB database files
Tree representing a MaxMind DB database in memory - then write it to a file

Provides

in lib/MaxMind/DB/Writer/Serializer.pm
in lib/MaxMind/DB/Writer/Tree/Processor/VisualizeTree.pm
in lib/MaxMind/DB/Writer/Util.pm

Examples