Crate netemul

Source
Expand description

Netemul utilities.

Modules§

guest
Methods for creating and interacting with virtualized guests in netemul tests.

Structs§

InterfaceConfig
TestInterface configuration.
PacketCapture
The object that has the same life as the packet capture, once the object is dropped, the underlying packet capture will be stopped.
TestEndpoint
A virtual network endpoint backed by Netemul.
TestFakeEndpoint
A virtual fake network endpoint backed by Netemul.
TestInterface
A TestEndpoint that is installed in a realm’s Netstack.
TestNetwork
A virtual Network.
TestNetworkSetup
A set of virtual networks and endpoints.
TestRealm
A realm within a netemul sandbox.
TestSandbox
A test sandbox backed by a fnetemul::SandboxProxy.

Enums§

DhcpClientVersion
The DHCP client version.
InStack
The in-Netstack2 DHCP client.
OutOfStack
The out-of-stack DHCP client.

Constants§

DEFAULT_MTU
The default MTU used in netemul endpoint configurations.
NETDEVICE_DEVFS_PATH
The devfs path at which endpoints show up.

Traits§

DhcpClient
Abstraction for how DHCP client functionality is provided.
RealmTcpListener
Trait describing TCP listeners bound in a testing realm.
RealmTcpStream
Trait describing TCP streams in a testing realm.
RealmUdpSocket
Trait describing UDP sockets that can be bound in a testing realm.

Functions§

devfs_device_path
Returns the full path for a device node node_name relative to devfs root.
new_endpoint_config
Creates a common netemul endpoint configuration for tests.