Module netsim::iface [−][src]
Contains utilities for creating virtual TUN/TAP network interfaces.
Structs
EtherIface |
A handle to a virtual (TAP) network interface. Can be used to read/write ethernet frames directly to the device. |
EtherIfaceBuilder |
This object can be used to set the configuration options for a |
IpIface |
A handle to a virtual (TUN) network interface. Can be used to read/write ethernet frames directly to the device. |
IpIfaceBuilder |
This object can be used to set the configuration options for a |
UnboundEtherIface |
Represents a TAP device which has been built but not bound to a tokio event loop. |
UnboundIpIface |
Represents a TUN device which has been built but not bound to a tokio event loop. |
Enums
GetMacAddrError |
Errors raised when configuring network interfaces. |
IfaceBuildError |
Error raised when |
PutUpError |
Errors raised when configuring network interfaces. |
SetIpv4AddrError |
Errors raised when configuring network interfaces. |
SetIpv6AddrError |
Errors raised when configuring network interfaces. |
SetMacAddrError |
Errors raised when configuring network interfaces. |
Functions
get_mac_addr |
Get an interface MAC address |
put_up |
Put an interface up. |
set_ipv4_addr |
Set an interface IPv4 address and netmask |
set_ipv6_addr |
Set an interface IPv6 address and prefixlen |
set_mac_addr |
Set an interface MAC address |