Initialize a new tap interface with the given parameters.
- Template Parameters
-
client_index | - opaque cookie to identify the sender |
context | - sender context, to match reply w/ request |
id | - interface id, 0xffffffff means auto |
use_random_mac | - let the system generate a unique mac address |
mac_address | - mac addr to assign to the interface if use_random not set |
num_rx_queues | - number of rx queues |
tx_ring_sz | - the number of entries of TX ring, optional, default is 256 entries, must be power of 2 |
rx_ring_sz | - the number of entries of RX ring, optional, default is 256 entries, must be power of 2 |
host_mtu_set | - host MTU should be set |
host_mtu_size | - host MTU size |
host_mac_addr_set | - host side interface mac address should be set |
host_mac_addr | - host side interface mac address |
host_ip4_prefix_set | - host IPv4 ip address should be set |
host_ip4_prefix | - host IPv4 ip address |
host_ip6_prefix_set | - host IPv6 ip address should be set |
host_ip6_prefix | - host IPv6 ip address |
host_ip4_gw_set | - host IPv4 default gateway should be set |
host_ip4_gw | - host IPv4 default gateway |
host_ip6_gw_set | - host IPv6 default gateway should be set |
host_ip6_gw | - host IPv6 default gateway |
tap_flags | - flags for the TAP interface creation |
host_if_name_set | - host side interface name should be set |
host_if_name | - host side interface name |
host_namespace_set | - host namespace should be set |
host_namespace | - host namespace to attach interface to |
host_bridge_set | - host bridge should be set |
host_bridge | - host bridge to attach interface to |
tag | - tag |
Definition at line 69 of file tapv2.api.