hmp_handle_error(mon, &err);
}
+#if defined(CONFIG_MARU)
+void hmp_get_link(Monitor *mon, const QDict *qdict)
+{
+ const char *name = qdict_get_str(qdict, "name");
+ Error *errp = NULL;
+ LinkInfo *info;
+ info = qmp_get_link(name, &errp);
+ if (errp) {
+ hmp_handle_error(mon, &errp);
+ g_free(info);
+ return;
+ }
+ monitor_printf(mon, "%s\n", info->is_up ? "on": "off");
+ g_free(info);
+}
+#endif
+
void hmp_block_passwd(Monitor *mon, const QDict *qdict)
{
const char *device = qdict_get_str(qdict, "device");