diff options
Diffstat (limited to 'src/libutil/radix.h')
-rw-r--r-- | src/libutil/radix.h | 10 |
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 |