Module netstack3_device::ethernet
source · Expand description
Ethernet devices.
Structs§
- Ethernet device state that can change at runtime.
- Base properties to create a new Ethernet device.
- Counters for ethernet devices.
- The maximum frame size one ethernet device can send.
- Metadata for received ethernet frames.
- Ethernet device state that is fixed after creation.
Enums§
- An implementation of the
LinkDevice
trait for Ethernet devices. - A timer ID for Ethernet devices.
Traits§
- Provides access to an ethernet device’s dynamic state.
- Provides access to an ethernet device’s static state.
Functions§
- Gets
device_id
’s MAC address. - Get the MTU associated with this device.
- Add
device_id
to a link multicast groupmulticast_addr
. - Remove
device_id
from a link multicast groupmulticast_addr
. - Send an Ethernet frame
body
directly todst_mac
withether_type
. - Send an IP packet in an Ethernet frame.
- Sets
device_id
’s MTU.
Type Aliases§
- A strong device ID identifying an ethernet device.
- The primary Ethernet device reference.
- A weak device ID identifying an ethernet device.