/qemu/net/ |
H A D | tap-bsd.c | 38 int tap_open(char *ifname, int ifname_size, int *vnet_hdr, in tap_open() argument 54 if (*ifname) { in tap_open() 66 if (*ifname) { in tap_open() 80 pstrcpy(ifname, ifname_size, ifr.ifr_name); in tap_open() 87 pstrcpy(ifname, ifname_size, dev); in tap_open() 129 if (ifname[0] != '\0') { in tap_open_clone() 138 ifr.ifr_data = ifname; in tap_open_clone() 147 pstrcpy(ifname, ifname_size, ifr.ifr_name); in tap_open_clone() 159 if (ifname[0] != '\0') { in tap_open() 161 snprintf(dname, sizeof dname, "/dev/%s", ifname); in tap_open() [all …]
|
H A D | af-xdp.c | 41 char ifname[IFNAMSIZ]; member 283 s->ifname, s->ifindex); in af_xdp_cleanup() 320 s->ifname, s->nc.queue_index); in af_xdp_umem_create() 366 if (xsk_socket__create(&s->xsk, s->ifname, queue_id, in af_xdp_socket_create() 374 if (xsk_socket__create(&s->xsk, s->ifname, queue_id, in af_xdp_socket_create() 390 s->ifname, queue_id); in af_xdp_socket_create() 454 ifindex = if_nametoindex(opts->ifname); in net_init_af_xdp() 457 opts->ifname); in net_init_af_xdp() 464 queues, opts->ifname); in net_init_af_xdp() 491 pstrcpy(s->ifname, sizeof(s->ifname), opts->ifname); in net_init_af_xdp() [all …]
|
H A D | vmnet-bridged.m | 20 static bool validate_ifname(const char *ifname) 31 return strcmp(xpc_string_get_string_ptr(value), ifname) != 0; 74 if (!validate_ifname(options->ifname)) { 78 "unsupported ifname '%s', expected one of [ %s]", 79 options->ifname, 84 "unsupported ifname '%s', no supported " 86 options->ifname); 116 options->ifname);
|
H A D | tap.c | 471 *parg++ = (char *)ifname; in launch_script() 687 launch_script(setup_script, ifname, fd, &err); in net_tap_init() 727 "%s", ifname); in net_init_tap_one() 822 char ifname[128]; in net_init_tap() local 976 net_init_tap_one(tap, peer, "bridge", name, ifname, in net_init_tap() 1000 if (tap->ifname) { in net_init_tap() 1001 pstrcpy(ifname, sizeof ifname, tap->ifname); in net_init_tap() 1003 ifname[0] = '\0'; in net_init_tap() 1008 ifname, sizeof ifname, queues > 1, errp); in net_init_tap() 1013 if (queues > 1 && i == 0 && !tap->ifname) { in net_init_tap() [all …]
|
H A D | tap-linux.c | 40 int tap_open(char *ifname, int ifname_size, int *vnet_hdr, in tap_open() argument 99 if (ifname[0] != '\0') in tap_open() 100 pstrcpy(ifr.ifr_name, IFNAMSIZ, ifname); in tap_open() 105 if (ifname[0] != '\0') { in tap_open() 115 pstrcpy(ifname, ifname_size, ifr.ifr_name); in tap_open() 327 int tap_fd_get_ifname(int fd, char *ifname) in tap_fd_get_ifname() argument 337 pstrcpy(ifname, sizeof(ifr.ifr_name), ifr.ifr_name); in tap_fd_get_ifname()
|
H A D | netmap.c | 45 char ifname[IFNAMSIZ]; member 92 nmd = nm_open(nm_opts->ifname, &req, NETMAP_NO_TX_POLL, in netmap_open() 96 nm_opts->ifname); in netmap_open() 319 pstrcpy(req.nr_name, sizeof(req.nr_name), s->ifname); in netmap_fd_set_vnet_hdr_len() 340 prev_len, s->ifname, strerror(errno)); in netmap_has_vnet_hdr_len() 366 len, s->ifname, strerror(errno)); in netmap_set_vnet_hdr_len() 426 pstrcpy(s->ifname, sizeof(s->ifname), netmap_opts->ifname); in net_init_netmap()
|
H A D | tap-stub.c | 29 int tap_open(char *ifname, int ifname_size, int *vnet_hdr, in tap_open() argument 89 int tap_fd_get_ifname(int fd, char *ifname) in tap_fd_get_ifname() argument
|
H A D | tap_int.h | 31 int tap_open(char *ifname, int ifname_size, int *vnet_hdr, 48 int tap_fd_get_ifname(int fd, char *ifname);
|
H A D | tap-solaris.c | 179 int tap_open(char *ifname, int ifname_size, int *vnet_hdr, in tap_open() argument 189 pstrcpy(ifname, ifname_size, dev); in tap_open() 258 int tap_fd_get_ifname(int fd, char *ifname) in tap_fd_get_ifname() argument
|
H A D | tap-win32.c | 723 const char *name, const char *ifname) in tap_win32_init() argument 729 if (tap_win32_open(&handle, ifname) < 0) { in tap_win32_init() 730 printf("tap: Could not open '%s'\n", ifname); in tap_win32_init() 738 qemu_set_info_str(&s->nc, "tap: ifname=%s", ifname); in tap_win32_init() 756 if (!tap->ifname) { in net_init_tap() 761 if (tap_win32_init(peer, "tap", name, tap->ifname) == -1) { in net_init_tap()
|
/qemu/net/can/ |
H A D | can_socketcan.c | 55 char *ifname; member 199 if (!c->ifname) { in can_host_socketcan_connect() 213 strcpy(ifr.ifr_name, c->ifname); in can_host_socketcan_connect() 218 c->ifname); in can_host_socketcan_connect() 226 c->ifname); in can_host_socketcan_connect() 236 c->ifname); in can_host_socketcan_connect() 259 c->ifname); in can_host_socketcan_connect() 279 return g_strdup(c->ifname); in can_host_socketcan_get_if() 299 g_free(c->ifname); in can_host_socketcan_set_if() 300 c->ifname = g_strdup(value); in can_host_socketcan_set_if()
|
/qemu/qapi/ |
H A D | net.json | 208 # @ifname: interface name 245 '*ifname': 'str', 405 # @ifname: Either the name of an existing network interface supported 418 'ifname': 'str', 442 # @ifname: The name of an existing network interface. 469 'ifname': 'str', 624 # @ifname: The name of the physical interface to be bridged. 635 'ifname': 'str',
|
/qemu/ |
H A D | qemu-bridge-helper.c | 178 static void prep_ifreq(struct ifreq *ifr, const char *ifname) in prep_ifreq() argument 181 snprintf(ifr->ifr_name, IFNAMSIZ, "%s", ifname); in prep_ifreq()
|
H A D | qemu-options.hx | 2822 "-netdev tap,id=str,ifname=name\n" 2825 "-netdev tap,id=str[,fd=h][,fds=x:y:...:z][,ifname=name][,script=file][,downscript=dfile]\n" 2914 "-netdev netmap,id=str,ifname=name[,devname=nmname]\n" 2920 "-netdev af-xdp,id=str,ifname=name[,mode=native|skb][,force-copy=on|off]\n" 2956 "-netdev vmnet-bridged,id=str,ifname=name[,isolated=on|off]\n" 2958 " use 'ifname=name' to select a physical network interface to be bridged,\n" 3247 -netdev tap,id=nd0,ifname=tap0 -device e1000,netdev=nd0 \\ 3248 -netdev tap,id=nd1,ifname=tap1 -device rtl8139,netdev=nd1 3449 -netdev af-xdp,id=n1,ifname=eth0,queues=4 3471 -netdev af-xdp,id=n1,ifname=eth0,queues=1,start-queue=1 [all …]
|
/qemu/docs/system/riscv/ |
H A D | microchip-icicle-kit.rst | 92 -nic tap,ifname=tap,model=cadence_gem,script=no \ 134 -nic tap,ifname=tap,model=cadence_gem,script=no \
|
H A D | sifive_u.rst | 202 -nic tap,ifname=tap0,script=no,downscript=no \
|
/qemu/target/xtensa/ |
H A D | xtensa-isa.c | 1609 xtensa_interface xtensa_interface_lookup(xtensa_isa isa, const char *ifname) in xtensa_interface_lookup() argument 1614 if (!ifname || !*ifname) { in xtensa_interface_lookup() 1621 entry.key = ifname; in xtensa_interface_lookup() 1629 sprintf(xtisa_error_msg, "interface \"%s\" not recognized", ifname); in xtensa_interface_lookup()
|
/qemu/docs/system/ppc/ |
H A D | ppce500.rst | 161 -nic tap,ifname=tap0,script=no,downscript=no,model=e1000 168 -netdev tap,ifname=tap0,script=no,downscript=no,id=net0 -device eTSEC,netdev=net0
|
/qemu/include/hw/xtensa/ |
H A D | xtensa-isa.h | 762 xtensa_interface xtensa_interface_lookup(xtensa_isa isa, const char *ifname);
|