[][src]Module ethox::layer::eth

The ethernet layer.

This is tasked with decoding the framed ethernet data that the physical device deals with, and putting upper layer data into an ethernet framing. This is conceptually and practically simply an implementation of the ideas outlined in the generic layer documentation. The state and logic within the ethernet endpoint is tiny compared to other layers.

Structs

Controller

A reference to the endpoint of layers below (phy + eth).

Endpoint

An ethernet endpoint, logical part of a device.

InPacket

An incoming packet.

Init

Initializer for a packet.

OutPacket

An outgoing packet as prepared by the ethernet layer.

RawPacket

A buffer into which a packet can be placed.

Receiver

An endpoint borrowed for receiving.

Sender

An endpoint borrowed for sending.

Traits

Recv

A ethernet receiver.

Send

An ethernet sender.