Module netstack3_core::device::socket
source · Expand description
Link-layer sockets (analogous to Linux’s AF_PACKET sockets).
Structs
- Data from an Ethernet frame.
- The destination to use when sending a datagram.
- The destination to use when sending a frame.
- Public identifier for a socket.
- Information about the bound state of a socket.
Enums
- A frame sent or received on a device
- A selector for frames based on link-layer protocol number.
- A frame received on a device.
- An error encountered when sending a datagram.
- An error encountered when sending a frame.
- A frame sent on a device.
- Selector for devices to send and receive packets on.
Traits
- Provides associated types for device sockets provided by the non-sync context.
- Non-sync context for packet sockets.
Functions
- Creates an packet socket with no protocol set configured for all devices.
- Gets the bound info for a socket.
- Removes a bound socket.
- Sends a datagram with system-determined framing.
- Sends a frame for the specified socket without any additional framing.
- Sets the device for which a packet socket will receive packets.
- Sets the device and protocol for which a socket will receive packets.