Commit Graph

2 Commits

Author SHA1 Message Date
proller
1338b03438 Fix freebsd and macos build (contrib/libbtrie) (#806)
* Try fix freebsd 11-STABLE OCbuild

* Fix freebsd and macos build (contrib/libbtrie)
2017-05-17 21:45:44 +04:00
Marek Vavruša
9520234365 Dictionaries/TrieDictionary: IP prefix dictionary
This commit implements a basic IP prefix dictionary
that allows storing IPv4/IPv6 prefixes and
matching them against a single IP address on query
time. This allows for doing IP -> ASN matching and
other similar things on query time.

The implementation is basic for start, using a
simple bitwise trie and reusing interface for
complex key dictionaries (so using tuple instead
of UInt32/FixedString(16) as the key). A faster
bitwise trie implementation (like poptrie) is
desired to improve lookup performance and
memory consumption with large prefix tables.
2017-05-15 10:51:03 +04:00