aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/radix.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-01 15:58:23 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-01 15:58:23 +0100
commit6ec67947dadeba207104ac0e2c65c9e10a3a580d (patch)
tree85e7fdbbf5081c779bdec6bba723fb35815f2ff9 /src/libutil/radix.h
parenta8c9abd046add08c8ac8f91c3c12d5c823fb44e3 (diff)
downloadrspamd-6ec67947dadeba207104ac0e2c65c9e10a3a580d.tar.gz
rspamd-6ec67947dadeba207104ac0e2c65c9e10a3a580d.zip
Rework addresses parsing.
Diffstat (limited to 'src/libutil/radix.h')
-rw-r--r--src/libutil/radix.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libutil/radix.h b/src/libutil/radix.h
index 38af00b51..5bf6a1dd8 100644
--- a/src/libutil/radix.h
+++ b/src/libutil/radix.h
@@ -117,4 +117,14 @@ void radix_destroy_compressed (radix_compressed_t *tree);
radix_compressed_t *radix_create_compressed (void);
+/**
+ * Insert list of ip addresses and masks to the radix tree
+ * @param list string line of addresses
+ * @param separators string of characters used as separators
+ * @param tree target tree
+ * @return number of elements inserted
+ */
+gint rspamd_radix_add_iplist (const gchar *list, const gchar *separators,
+ radix_compressed_t *tree);
+
#endif