RDEBUG2("Merging cache entry into request");
RINDENT();
- while ((map = fr_dlist_next(&c->maps, map))) {
+ while ((map = fr_map_list_next(&c->maps, map))) {
/*
* The only reason that the application of a map entry
* can fail, is if the destination list or request
* gathering fr_pair_ts to cache.
*/
pool = talloc_pool(NULL, 2048);
- while ((map = fr_dlist_next(&inst->maps, map))) {
+ while ((map = fr_map_list_next(&inst->maps, map))) {
fr_pair_list_t to_cache;
fr_pair_list_init(&to_cache);
fr_assert(0);
}
MAP_VERIFY(c_map);
- fr_dlist_insert_tail(&c->maps, c_map);
+ fr_map_list_insert_tail(&c->maps, c_map);
}
talloc_free_children(pool); /* reset pool state */
}
return XLAT_ACTION_FAIL;
}
- while ((map = fr_dlist_next(&c->maps, map))) {
+ while ((map = fr_map_list_next(&c->maps, map))) {
if ((tmpl_da(map->lhs) != tmpl_da(target)) ||
(tmpl_list(map->lhs) != tmpl_list(target))) continue;
}
}
- if (fr_dlist_empty(&inst->maps)) {
+ if (fr_map_list_empty(&inst->maps)) {
cf_log_err(conf, "Cache config must contain an update section, and "
"that section must not be empty");
return -1;
/*
* It's valid to have an empty cache entry (save allocing the pairs pool)
*/
- if (fr_dlist_empty(&c->maps)) goto finish;
+ if (fr_map_list_empty(&c->maps)) goto finish;
value_pool = talloc_pool(ctx, 512);
if (!value_pool) {
return -1;
}
- while ((map = fr_dlist_next(&c->maps, map))) {
+ while ((map = fr_map_list_next(&c->maps, map))) {
char *value;
ssize_t slen;
MAP_VERIFY(map);
/* It's not a special attribute, add it to the map list */
- fr_dlist_insert_tail(&c->maps, map);
+ fr_map_list_insert_tail(&c->maps, map);
next:
p = q + 1;