Module ethernet

Source
Expand description

Ethernet devices.

Structs§

DynamicEthernetDeviceState
Ethernet device state that can change at runtime.
EthernetCreationProperties
Base properties to create a new Ethernet device.
EthernetDeviceCounters
Counters for ethernet devices.
MaxEthernetFrameSize
The maximum frame size one ethernet device can send.
RecvEthernetFrameMeta
Metadata for received ethernet frames.
StaticEthernetDeviceState
Ethernet device state that is fixed after creation.

Enums§

EthernetLinkDevice
An implementation of the LinkDevice trait for Ethernet devices.
EthernetTimerId
A timer ID for Ethernet devices.

Traits§

EthernetIpLinkDeviceDynamicStateContext
Provides access to an ethernet device’s dynamic state.
EthernetIpLinkDeviceStaticStateContext
Provides access to an ethernet device’s static state.

Functions§

get_mac
Gets device_id’s MAC address.
get_mtu
Get the MTU associated with this device.
join_link_multicast
Add device_id to a link multicast group multicast_addr.
leave_link_multicast
Remove device_id from a link multicast group multicast_addr.
send_as_ethernet_frame_to_dst
Send an Ethernet frame body directly to dst_mac with ether_type.
send_ip_frame
Send an IP packet in an Ethernet frame.
set_mtu
Sets device_id’s MTU.

Type Aliases§

EthernetDeviceId
A strong device ID identifying an ethernet device.
EthernetPrimaryDeviceId
The primary Ethernet device reference.
EthernetWeakDeviceId
A weak device ID identifying an ethernet device.