Expand description
Ethernet devices.
Structs§
- Dynamic
Ethernet Device State - Ethernet device state that can change at runtime.
- Ethernet
Creation Properties - Base properties to create a new Ethernet device.
- Ethernet
Device Counters - Counters for ethernet devices.
- MaxEthernet
Frame Size - The maximum frame size one ethernet device can send.
- Recv
Ethernet Frame Meta - Metadata for received ethernet frames.
- Static
Ethernet Device State - Ethernet device state that is fixed after creation.
Enums§
- Ethernet
Link Device - An implementation of the
LinkDevice
trait for Ethernet devices. - Ethernet
Timer Id - A timer ID for Ethernet devices.
Traits§
- Ethernet
IpLink Device Dynamic State Context - Provides access to an ethernet device’s dynamic state.
- Ethernet
IpLink Device Static State Context - 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 groupmulticast_addr
. - leave_
link_ multicast - Remove
device_id
from a link multicast groupmulticast_addr
. - send_
as_ ethernet_ frame_ to_ dst - Send an Ethernet frame
body
directly todst_mac
withether_type
. - send_
ip_ frame - Send an IP packet in an Ethernet frame.
- set_mtu
- Sets
device_id
’s MTU.
Type Aliases§
- Ethernet
Device Id - A strong device ID identifying an ethernet device.
- Ethernet
Primary Device Id - The primary Ethernet device reference.
- Ethernet
Weak Device Id - A weak device ID identifying an ethernet device.