* fr_pair_ts with no value need a 1 byte value buffer.
*/
if (!value) {
- switch (da->type) {
+ switch (vp->vp_type) {
case FR_TYPE_OCTETS:
fr_pair_value_memdup(vp, (uint8_t const *)"\0", 1, true);
break;
return PAIR_ENCODE_FATAL_ERROR;
}
- switch (da->type) {
+ switch (vp->vp_type) {
case FR_TYPE_STRUCTURAL:
fr_strerror_printf("%s: Called with structural type %s", __FUNCTION__,
fr_type_to_str(da_stack->da[depth]->type));
break;
}
- switch (da->type) {
+ switch (vp->vp_type) {
/*
* In order to represent the string length properly we include a second
* 16bit length field with the real string length.
return PAIR_ENCODE_FATAL_ERROR;
}
- switch (da->type) {
+ switch (vp->vp_type) {
case FR_TYPE_TLV:
case FR_TYPE_VENDOR:
case FR_TYPE_VSA:
fr_type_to_str(da->type));
return PAIR_ENCODE_FATAL_ERROR;
- default:
- break;
- }
-
-
- switch (da->type) {
/*
* 0 1 2 3
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
return PAIR_ENCODE_FATAL_ERROR;
}
- switch (da->type) {
+ switch (vp->vp_type) {
case FR_TYPE_TLV:
case FR_TYPE_VENDOR:
case FR_TYPE_VSA:
fr_type_to_str(da->type));
return PAIR_ENCODE_FATAL_ERROR;
- default:
- break;
- }
-
-
- switch (da->type) {
case FR_TYPE_STRING:
/*
* DNS labels get a special encoder.
*/
break;
- case FR_TYPE_GROUP:
- fr_strerror_const("invalid data type - group");
- return PAIR_ENCODE_FATAL_ERROR;
-
/*
* The value_box functions will take care of fixed-width
* "string" and "octets" options.
fr_assert(!da->flags.name_only);
- switch (da->type) {
+ switch (vp->vp_type) {
/*
* Only leaf attributes can be tainted
*/
value_dbuff = FR_DBUFF_BIND_CURRENT(&work_dbuff);
fr_dbuff_marker(&value_field, &value_dbuff);
- switch (da->type) {
+ switch (vp->vp_type) {
case FR_TYPE_LEAF:
slen = fr_value_box_to_network(&value_dbuff, &vp->data);
if (slen < 0) return PAIR_ENCODE_FATAL_ERROR;
fr_dbuff_marker(&src, &value_dbuff);
fr_dbuff_marker(&dest, &value_dbuff);
- switch (da->type) {
+ switch (vp->vp_type) {
/*
* IPv4 addresses are normal, but IPv6 addresses are special to RADIUS.
*/