Function crosvm_direct::crosvm::sys::unix::device_helpers::create_net_device_from_config
source · [−]pub fn create_net_device_from_config(
protection_type: ProtectionType,
jail_config: &Option<JailConfig>,
vq_pairs: u16,
vcpu_count: usize,
vhost_net: Option<PathBuf>,
host_ip: Ipv4Addr,
netmask: Ipv4Addr,
mac_address: MacAddress
) -> Result<VirtioDeviceStub>
Expand description
Returns a network device created from a new TAP interface configured with host_ip
, netmask
,
and mac_address
.