l->attrs[0].u.data = v1.val.i;
break;
- case EAF_TYPE_OPAQUE:
- runtime( "Setting opaque attribute is not allowed" );
- break;
-
case EAF_TYPE_IP_ADDRESS:;
int len = sizeof(ip_addr);
struct adata *ad = lp_alloc(fs->pool, sizeof(struct adata) + len);
l->attrs[0].u.ptr = ad;
break;
+ case EAF_TYPE_OPAQUE:
case EAF_TYPE_AS_PATH:
case EAF_TYPE_INT_SET:
case EAF_TYPE_EC_SET:
case T_LCLIST:
ea_type = EAF_TYPE_LC_SET;
break;
+ case T_BYTESTRING:
+ ea_type = EAF_TYPE_OPAQUE;
+ break;
default:
cf_error("Custom route attribute of unsupported type");
}