Expand description
Advanced MAC address library.
§Usage
Add this to your Cargo.toml:
[dependencies]
advmac = "1.0.3"§Features:
- EUI-48 and EUI-64.
- Extensive
no_stdsupport. serdesupport (even onno_std).const fnaddress parser with convenience macros for compile-time address handling:mac6!,mac8!.- MAC address generation and editing.
Macros§
- mac6
- Convenience macro for creating MacAddr6 in compile-time.
- mac8
- Convenience macro for creating MacAddr8 in compile-time.
Structs§
Enums§
Constants§
- MAC_
CANONICAL_ SIZE6 - Size of formatted MAC using MacAddr6::format_string and MacAddrFormat::Canonical.
- MAC_
CANONICAL_ SIZE8 - Size of formatted MAC using MacAddr8::format_string and MacAddrFormat::Canonical.
- MAC_
COLON_ NOTATION_ SIZE6 - Size of formatted MAC using MacAddr6::format_string and MacAddrFormat::ColonNotation.
- MAC_
COLON_ NOTATION_ SIZE8 - Size of formatted MAC using MacAddr8::format_string and MacAddrFormat::ColonNotation.
- MAC_
DOT_ NOTATION_ SIZE6 - Size of formatted MAC using MacAddr6::format_string and MacAddrFormat::DotNotation.
- MAC_
DOT_ NOTATION_ SIZE8 - Size of formatted MAC using MacAddr8::format_string and MacAddrFormat::DotNotation.
- MAC_
HEXADECIMA L0X_ SIZE6 - Size of formatted MAC using MacAddr6::format_string and MacAddrFormat::Hexadecimal0x.
- MAC_
HEXADECIMA L0X_ SIZE8 - Size of formatted MAC using MacAddr8::format_string and MacAddrFormat::Hexadecimal0x.
- MAC_
HEXADECIMAL_ SIZE6 - Size of formatted MAC using MacAddr6::format_string and MacAddrFormat::Hexadecimal.
- MAC_
HEXADECIMAL_ SIZE8 - Size of formatted MAC using MacAddr8::format_string and MacAddrFormat::Hexadecimal.
- MAC_
MAX_ SIZE - Maximum formatted size.