pub async fn create_tun_port_with(
tun_device: &DeviceProxy,
id: u8,
rx_frame_types: impl IntoIterator<Item = FrameType>,
tx_frame_types: impl IntoIterator<Item = FrameType>,
mac: Option<MacAddress>,
) -> (PortProxy, PortProxy)
Expand description
Create a port on the given Tun device, returning handles to the created
fuchsia.net.tun/Port
and the underlying network port.