diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/linux.rs | 2 | ||||
-rw-r--r-- | src/plugin/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/linux.rs b/src/linux.rs index 3370c1e..6eb1ef7 100644 --- a/src/linux.rs +++ b/src/linux.rs @@ -593,7 +593,7 @@ fn create_tap_net_device(cfg: &Config, tap_fd: RawFd) -> DeviceResult { .map_err(Error::CreateTapDevice)? }; - let dev = virtio::Net::from(tap).map_err(Error::NetDeviceNew)?; + let dev = virtio::Net::from(tap, 1).map_err(Error::NetDeviceNew)?; Ok(VirtioDeviceStub { dev: Box::new(dev), diff --git a/src/plugin/mod.rs b/src/plugin/mod.rs index 1c7027f..ae7e19c 100644 --- a/src/plugin/mod.rs +++ b/src/plugin/mod.rs @@ -662,7 +662,7 @@ pub fn run_config(cfg: Config) -> Result<()> { if let Some(host_ip) = cfg.host_ip { if let Some(netmask) = cfg.netmask { if let Some(mac_address) = cfg.mac_address { - let tap = Tap::new(false).map_err(Error::TapOpen)?; + let tap = Tap::new(false, false).map_err(Error::TapOpen)?; tap.set_ip_addr(host_ip).map_err(Error::TapSetIp)?; tap.set_netmask(netmask).map_err(Error::TapSetNetmask)?; tap.set_mac_address(mac_address) |