Skip to main content

Module socket

Module socket 

Source
Expand description

Raw Ethernet frames of one ethertype on one interface.

Structs§

Received
A frame received on a Socket.
Socket
Sends and receives the payloads of Ethernet frames of one ethertype on one interface. The kernel adds and removes the Ethernet header.

Enums§

Blocked
Why raw Ethernet is out of this program’s reach. Socket::open and check_access return it inside their error; Blocked::of finds it.

Functions§

check_access
Whether this program may send and receive raw Ethernet at all, before any interface is picked: an error carrying Blocked when it may not.