VBVX 0.1.0
Header-only C++23 library for safe, zero-copy parsing of packet buffers.
Loading...
Searching...
No Matches
ether.hxx File Reference
#include <bit>
#include <cstdint>
#include <span>
#include "utils.hxx"

Go to the source code of this file.

Classes

struct  vbvx::EtherHeader
 Ethernet frame header (14 bytes). More...
struct  vbvx::VlanTci
 VLAN Tag Control Information (TCI) helpers and layout. More...
struct  vbvx::VlanHeader
 VLAN (802.1Q) header (4 bytes after Ethernet header). More...

Namespaces

namespace  vbvx

Enumerations

enum class  vbvx::EtherType : uint16_t { vbvx::IPv4 = 0x0800 , vbvx::ARP = 0x0806 , vbvx::VLAN = 0x8100 , vbvx::IPv6 = 0x86DD }
 Ethernet frame EtherType values (network byte order). More...
enum class  vbvx::VlanPcp : uint8_t {
  vbvx::p0 = 0 , vbvx::p1 = 1 , vbvx::p2 = 2 , vbvx::p3 = 3 ,
  vbvx::p4 = 4 , vbvx::p5 = 5 , vbvx::p6 = 6 , vbvx::p7 = 7
}
 VLAN Priority Code Point (PCP) values (3 bits). More...