netstack_testing_common::devices

Function create_tun_pair_with

Source
pub async fn create_tun_pair_with(
    dev_pair_config: DevicePairConfig,
    dev_pair_port_config: DevicePairPortConfig,
) -> (DevicePairProxy, PortProxy, PortProxy)
Expand description

Create a Tun device pair with the provided configurations, returning handles to the created fuchsia.net.tun/DevicePair and both underlying ports.