コード例 #1
0
ファイル: map.c プロジェクト: skibbipl/rspamd
/**
 * Radix tree helper function
 */
static void
radix_tree_insert_helper (gpointer st, gconstpointer key, gpointer value)
{
    radix_compressed_t *tree = (radix_compressed_t *)st;

    rspamd_radix_add_iplist ((gchar *)key, " ,;", tree);
}
コード例 #2
0
ファイル: radix.c プロジェクト: Sp1l/rspamd
gboolean
radix_add_generic_iplist (const gchar *ip_list, radix_compressed_t **tree)
{
	if (*tree == NULL) {
		*tree = radix_create_compressed ();
	}

	return (rspamd_radix_add_iplist (ip_list, ",; ", *tree,
			GINT_TO_POINTER (1)) > 0);
}