#ieee #iana #ethernet

no-std ethertype

IEEE 802 EtherType with protocol descriptions

2 unstable releases

0.1.0 Oct 31, 2024
0.0.1 Oct 25, 2024

#799 in Network programming

36 downloads per month

MIT license

435KB
8K SLoC

ethertype-rs

crates tests docs.rs msrv license

A crate providing the EtherType type for representing IEEE 802 EtherType values.

This crate provides constants for the most common EtherTypes, and their textual descriptions. Additionally, descriptions from IANA, as well as protocol descriptions and the names of the organizations that registered them sourced from the IEEE Registration Authority are also made available.


lib.rs:

A crate providing the EtherType type for representing IEEE 802 EtherType values.

The consts module contains the most common EtherTypes, the descriptions of which can be obtained using EtherType::description.

Additionally, descriptions from IANA can be obtained with EtherType::iana_description. Protocol descriptions and the names of the organizations that registered them sourced from the IEEE Registration Authority can be obtained with EtherType::ieee_description and EtherType::ieee_organization respectively.

Dependencies