for (vp = fr_pair_list_head(packet_vps);
vp;
vp = fr_pair_list_next(packet_vps, vp)) {
- fr_assert(vp->type != VT_XLAT);
-
/*
* Allow to set packet type using Message-Type
*/
vp;
vp = fr_pair_list_next(&request->filter, vp)) {
again:
- fr_assert(vp->type != VT_XLAT);
-
if (vp->da == attr_packet_type) {
fr_pair_t *next;
next = fr_pair_list_next(&request->filter, vp); /* so we don't break the filter */
for (vp = fr_pair_list_head(&request->request_pairs);
vp;
vp = fr_pair_list_next(&request->request_pairs, vp)) {
- fr_assert(vp->type != VT_XLAT);
-
/*
* Allow it to set the packet type in
* the attributes read from the file.
for (vp = fr_pair_dcursor_init(&cursor, &request->request_pairs);
vp;
vp = fr_dcursor_next(&cursor)) {
- fr_assert(vp->type != VT_XLAT);
-
if (vp->da == attr_packet_type) {
request->packet->code = vp->vp_uint32;
} else if (vp->da == attr_packet_dst_port) {
}
- /*
- * If it's an xlat, copy the raw string and return
- * early, so we don't pre-expand or otherwise mangle
- * the fr_pair_t.
- */
- if (vp->type == VT_XLAT) {
- n->xlat = talloc_typed_strdup(n, vp->xlat);
- return n;
- }
-
/*
* Groups are special.
*/
VT_SET, //!< fr_pair_t has children.
VT_LIST, //!< fr_pair_t has multiple values.
VT_DATA, //!< fr_pair_t has a single value.
- VT_XLAT //!< valuepair value must be xlat expanded when it's
- //!< added to fr_pair_t tree.
} value_type_t;
typedef struct value_pair_s fr_pair_t;
PAIR_VERIFY(vp);
- /*
- * Legacy crap that needs to be removed
- */
- if (vp->type == VT_XLAT) {
- char const *quote_str = fr_table_str_by_value(fr_token_quotes_table, quote, "");
-
- return fr_sbuff_in_sprintf(out, "%s%s%s", quote_str, vp->xlat, quote_str);
- }
-
switch (vp->da->type) {
/*
* For structural types descend down