#include "net/net.h"
#include "clients.h"
-#include "qemu-common.h"
#include "qemu/option.h"
#include "qemu/main-loop.h"
#include "qapi/error.h"
VDECONN *vde;
char *init_group = (char *)group;
char *init_sock = (char *)sock;
- NetdevVdeOptions *stored;
struct vde_open_args args = {
.port = port,
nc = qemu_new_net_client(&net_vde_info, peer, model, name);
+ qemu_set_info_str(nc, "sock=%s,fd=%d", sock, vde_datafd(vde));
+
s = DO_UPCAST(VDEState, nc, nc);
s->vde = vde;
qemu_set_fd_handler(vde_datafd(s->vde), vde_to_qemu, NULL, s);
- /* Store startup parameters */
- nc->stored_config = g_new0(NetdevInfo, 1);
- nc->stored_config->type = NET_BACKEND_VDE;
- stored = &nc->stored_config->u.vde;
-
- if (sock) {
- stored->has_sock = true;
- stored->sock = g_strdup(sock);
- }
-
- stored->has_port = true;
- stored->port = port;
-
- if (group) {
- stored->has_group = true;
- stored->group = g_strdup(group);
- }
-
- stored->has_mode = true;
- stored->mode = mode;
-
return 0;
}