#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

#636 in Network programming

Download history 104/week @ 2024-10-22 157/week @ 2024-10-29 15/week @ 2024-11-05

276 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