Ethernet frame header (14 bytes).
More...
#include <ether.hxx>
|
| constexpr auto | dst_mac () const noexcept -> std::span< const uint8_t, 6 > |
| constexpr auto | src_mac () const noexcept -> std::span< const uint8_t, 6 > |
| constexpr auto | type () const noexcept -> uint16_t |
Ethernet frame header (14 bytes).
- See also
- IANA registry (Ethernet numbers / EtherType): https://www.iana.org/assignments/ethernet-numbers/ethernet-numbers.xhtml
-
RFC RFC894 (Ethernet encapsulation of IP datagrams): https://datatracker.ietf.org/doc/html/rfc894
◆ dst_mac()
| auto vbvx::EtherHeader::dst_mac |
( |
| ) |
const -> std::span< const uint8_t, 6 > |
|
inlineconstexprnoexcept |
◆ src_mac()
| auto vbvx::EtherHeader::src_mac |
( |
| ) |
const -> std::span< const uint8_t, 6 > |
|
inlineconstexprnoexcept |
◆ type()
| auto vbvx::EtherHeader::type |
( |
| ) |
const -> uint16_t |
|
inlineconstexprnoexcept |
◆ dst
| uint8_t vbvx::EtherHeader::dst[6] |
◆ src
| uint8_t vbvx::EtherHeader::src[6] |
◆ type_be
| uint16_t vbvx::EtherHeader::type_be |
The documentation for this struct was generated from the following file: