pub async fn setup_network_with<'a, N: Netstack, I>(
sandbox: &'a TestSandbox,
name: &'a str,
metric: Option<u32>,
children: I,
) -> Result<(TestNetwork<'a>, TestRealm<'a>, TestInterface<'a>, TestFakeEndpoint<'a>)>
Expand description
Sets up a realm with required services and a network used for tests requiring manual packet inspection and transmission.
Returns the network, realm, netstack client, interface (added to the netstack and up) and a fake endpoint used to read and write raw ethernet packets.