Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ip_network_table instead of homegrown trie impl (cloudflare#184)
ip_network_table crate is exactly what we need so use it instead of own trie impl. Big code/complexity reduction. Keep all unit tests. This in turn uses ip_network and treemap crates, these both look good too. (wireguard-rs also uses these, fwiw.) Make small changes to rest of code as needed. AllowedIps interface is mostly the same but I couldn't resist a few tweaks.
- Loading branch information