Lines Matching refs:model

307              "model=%s,macaddr=%02x:%02x:%02x:%02x:%02x:%02x",
308 vc->model,
313 static char *assign_name(VLANClientState *vc1, const char *model)
323 if (vc != vc1 && strcmp(vc->model, model) == 0)
327 snprintf(buf, sizeof(buf), "%s.%d", model, id);
333 const char *model,
343 vc->model = strdup(model);
347 vc->name = assign_name(vc, model);
374 free(vc->model);
711 static int net_slirp_init(VLANState *vlan, const char *model, const char *name,
736 slirp_vc = qemu_new_vlan_client(vlan, model, name, NULL, slirp_receive,
1126 const char *model,
1134 s->vc = qemu_new_vlan_client(vlan, model, name, NULL, tap_receive,
1375 static int net_tap_init(VLANState *vlan, const char *model,
1397 s = net_tap_fd_init(vlan, model, name, fd);
1448 static int net_vde_init(VLANState *vlan, const char *model,
1468 s->vc = qemu_new_vlan_client(vlan, model, name, NULL, vde_receive,
1490 char *model;
1664 const char *model,
1707 s->vc = qemu_new_vlan_client(vlan, model, name, NULL, net_socket_receive_dgram,
1728 const char *model,
1735 s->vc = qemu_new_vlan_client(vlan, model, name, NULL, net_socket_receive,
1748 const char *model, const char *name,
1760 return net_socket_fd_init_dgram(vlan, model, name, fd, is_connected);
1762 return net_socket_fd_init_stream(vlan, model, name, fd, is_connected);
1766 return net_socket_fd_init_stream(vlan, model, name, fd, is_connected);
1788 s1 = net_socket_fd_init(s->vlan, s->model, s->name, fd, 1);
1799 const char *model,
1834 s->model = strdup(model);
1842 const char *model,
1882 s = net_socket_fd_init(vlan, model, name, fd, connected);
1892 const char *model,
1908 s = net_socket_fd_init(vlan, model, name, fd, 0);
2051 void qemu_check_nic_model(NICInfo *nd, const char *model)
2055 models[0] = model;
2058 qemu_check_nic_model_list(nd, models, model);
2066 if (!nd->model)
2067 nd->model = strdup(default_model);
2069 if (strcmp(nd->model, "?") != 0) {
2071 if (strcmp(nd->model, models[i]) == 0)
2074 fprintf(stderr, "qemu: Unsupported NIC model: %s\n", nd->model);
2106 "vlan", "name", "macaddr", "model", NULL
2138 if (get_param_value(buf, sizeof(buf), "model", p)) {
2139 nd->model = strdup(buf);
2382 free((void *)nd->model);
2433 if (!net_host_check_device(vc->model)) {