Home | History | Annotate | Download | only in qemu

Lines Matching refs:device

131 /* network device redirectors */
1164 * Allocate TAP device, returns opened fd.
1188 /* Check if IP device was opened */
1229 /* Assign ppa according to the unit number returned by tun device */
1259 syslog(LOG_ERR, "Can't link TAP device to IP");
1264 syslog (LOG_ERR, "Can't link TAP device to ARP");
1289 fprintf(stderr, "Cannot allocate TAP device\n");
1985 static int net_dump_init(Monitor *mon, VLANState *vlan, const char *device,
2016 s->pcap_vc = qemu_new_vlan_client(vlan, device, name, NULL, dump_receive, NULL,
2085 int net_client_init(Monitor *mon, const char *device, const char *p)
2104 if (!strcmp(device, "nic")) {
2149 if (!strcmp(device, "none")) {
2160 if (!strcmp(device, "user")) {
2182 ret = net_slirp_init(vlan, device, name, restricted, ip);
2184 } else if (!strcmp(device, "channel")) {
2200 config_error(mon, "could not open vmchannel device '%s'\n",
2213 if (!strcmp(device, "tap")) {
2230 ret = tap_win32_init(vlan, device, name, ifname);
2234 if (!strcmp(device, "tap")) {
2247 net_tap_fd_init(vlan, device, name, fd);
2267 ret = net_tap_init(vlan, device, name, ifname, setup_script, down_script);
2271 if (!strcmp(device, "socket")) {
2282 if (net_socket_fd_init(vlan, device, name, fd, 1))
2293 ret = net_socket_listen_init(vlan, device, name, buf);
2303 ret = net_socket_connect_init(vlan, device, name, buf);
2313 ret = net_socket_mcast_init(vlan, device, name, buf);
2322 if (!strcmp(device, "vde")) {
2351 ret = net_vde_init(vlan, device, name, vde_sock, vde_port, vde_group, vde_mode);
2354 if (!strcmp(device, "dump")) {
2363 ret = net_dump_init(mon, vlan, device, name, buf, len);
2365 config_error(mon, "Unknown network device: %s\n", device);
2370 config_error(mon, "Could not initialize device '%s'\n", device);
2385 static int net_host_check_device(const char *device)
2397 if (!strncmp(valid_param_list[i], device,
2405 void net_host_device_add(Monitor *mon, const char *device, const char *opts)
2407 if (!net_host_check_device(device)) {
2408 monitor_printf(mon, "invalid host network device %s\n", device);
2411 if (net_client_init(mon, device, opts ? opts : "") < 0) {
2412 monitor_printf(mon, "adding host network device %s failed\n", device);
2416 void net_host_device_remove(Monitor *mon, int vlan_id, const char *device)
2424 if (!strcmp(vc->name, device)) {
2430 monitor_printf(mon, "can't find device %s\n", device);
2434 monitor_printf(mon, "invalid host network device %s\n", device);
2444 char device[64];
2447 q = device;
2449 if ((q - device) < sizeof(device) - 1)
2457 return net_client_init(NULL, device, p);
2484 monitor_printf(mon, "could not find network device '%s'", name);