fr_slen_t slen;
slen = fr_dict_attr_by_oid_substr(&err,
- &rules->attr.parent,
+ &rules->attr.namespace,
rules->attr.dict_def ? fr_dict_root(rules->attr.dict_def) :
fr_dict_root(fr_dict_internal()),
value, NULL);
*/
if (is_child) {
fr_assert(tmpl_is_attr(parent->lhs));
- our_lhs_rules.attr.parent = tmpl_attr_tail_da(parent->lhs);
+ our_lhs_rules.attr.namespace = tmpl_attr_tail_da(parent->lhs);
slen = tmpl_afrom_attr_substr(map, NULL, &map->lhs, &our_in,
&map_parse_rules_bareword_quoted, &our_lhs_rules);
* inner section.
*/
our_lhs_rules.attr.prefix = TMPL_ATTR_REF_PREFIX_NO;
- our_lhs_rules.attr.parent = tmpl_attr_tail_da(map->lhs);
+ our_lhs_rules.attr.namespace = tmpl_attr_tail_da(map->lhs);
/*
* Groups MAY change dictionaries. If so, then swap the dictionary and the parent.
*/
- if (our_lhs_rules.attr.parent->type == FR_TYPE_GROUP) {
+ if (our_lhs_rules.attr.namespace->type == FR_TYPE_GROUP) {
fr_dict_attr_t const *ref;
fr_dict_t const *dict, *internal;
- ref = fr_dict_attr_ref(our_lhs_rules.attr.parent);
+ ref = fr_dict_attr_ref(our_lhs_rules.attr.namespace);
dict = fr_dict_by_da(ref);
internal = fr_dict_internal();
if ((dict != internal) && (dict != our_lhs_rules.attr.dict_def)) {
our_lhs_rules.attr.dict_def = dict;
- our_lhs_rules.attr.parent = ref;
+ our_lhs_rules.attr.namespace = ref;
}
}
fr_dict_t const *dict_def; //!< Default dictionary to use
///< with unqualified attribute references.
- fr_dict_attr_t const *parent; //!< Point in dictionary tree to resume parsing
+ fr_dict_attr_t const *namespace; //!< Point in dictionary tree to resume parsing
///< from. If this is provided then dict_def
///< request_def and list_def will be ignored
///< and the presence of any of those qualifiers
goto default_ref;
}
- if (at_rules->parent || at_rules->disallow_qualifiers) {
+ if (at_rules->namespace || at_rules->disallow_qualifiers) {
fr_strerror_const("It is not permitted to specify a request reference here");
if (err) *err = TMPL_ATTR_ERROR_INVALID_LIST_QUALIFIER;
*/
ret = tmpl_attr_afrom_attr_substr(vpt, err,
vpt,
- at_rules->parent, at_rules->parent,
+ at_rules->namespace, at_rules->namespace,
&our_name, p_rules, at_rules, 0);
if (ret < 0) goto error;
*/
if (da->type != FR_TYPE_GROUP) {
out->attr.dict_def = fr_dict_by_da(da);
- out->attr.parent = da;
+ out->attr.namespace = da;
return;
}
*/
if ((dict != internal) && (dict != out->attr.dict_def)) {
out->attr.dict_def = dict;
- out->attr.parent = ref;
+ out->attr.namespace = ref;
}
/*
t_rules->parent = unlang_ctx->rules;
t_rules->attr.dict_def = var->dict;
- t_rules->attr.parent = NULL;
+ t_rules->attr.namespace = NULL;
unlang_ctx->rules = t_rules;
}
fr_dict_t const *dict;
fr_dict_attr_t const *da = NULL;
- fr_dict_enum_value_t const *type_enum = NULL;
+ fr_dict_enum_value_t const *type_enum = NULL;
char const *packet_name = NULL;
char *p, *namespace = NULL;