From 9ae0493f954ac0186541aa567b55adbb436b33db Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 1 Oct 2014 14:55:49 +0100 Subject: Add routine to find rspamd_inet_addr in radix trie. --- src/libutil/radix.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/libutil/radix.h') diff --git a/src/libutil/radix.h b/src/libutil/radix.h index 52dc96952..f89d30103 100644 --- a/src/libutil/radix.h +++ b/src/libutil/radix.h @@ -81,6 +81,15 @@ uintptr_t radix32tree_find (radix_tree_t *tree, guint32 key); */ uintptr_t radix32_tree_find_addr (radix_tree_t *tree, rspamd_inet_addr_t *addr); +/** + * Find specified address in tree (works for any address) + * @param tree + * @param addr + * @return + */ +uintptr_t radix_find_compressed_addr (radix_compressed_t *tree, + rspamd_inet_addr_t *addr); + /** * Traverse via the whole tree calling specified callback */ -- cgit v1.2.3