Module devices

Source
Expand description

Utilities for interacting with devices during integration tests.

Constants§

TUN_DEFAULT_PORT_ID
Default port ID when creating a tun device pair.

Functions§

add_pure_ip_interface
Add a pure IP interface to the given device/port, returning the created fuchsia.net.interfaces.admin/Control handle.
create_eth_tun_pair
Create a Tun device pair with an Ethernet port.
create_eth_tun_port
Creates a port on the given Tun device that supports the Ethernet frame type.
create_ip_tun_port
Creates a port on the given Tun device that supports IPv4 and IPv6 frame types.
create_tun_device
Create a Tun device, returning handles to the created fuchsia.net.tun/Device and the underlying network device.
create_tun_device_with
Create a Tun device with the provided config and return its handles.
create_tun_pair_with
Create a Tun device pair with the provided configurations, returning handles to the created fuchsia.net.tun/DevicePair and both underlying ports.
create_tun_port_with
Create a port on the given Tun device, returning handles to the created fuchsia.net.tun/Port and the underlying network port.
install_device
Install the given network device into the test realm’s networking stack, returning the created fuchsia.net.interfaces.admin/DeviceControl handle.