scc 2026.07
SystemC components library
eth::ethernet_frame Struct Reference
Collaboration diagram for eth::ethernet_frame:

Static Public Member Functions

static ethernet_frame parse_ethernet (nonstd::span< const std::uint8_t > frame)

Public Attributes

ethernet_header l2
bool has_vlan = false
std::uint16_t vlan_tpid = 0
std::uint16_t vlan_id = 0
std::uint16_t vlan_pcp = 0
bool vlan_dei = false
ether_kind kind = ether_kind::ETHER_TYPE
std::uint16_t etherType_or_len = 0
nonstd::span< const std::uint8_t > payload

Detailed Description

Definition at line 57 of file eth_tlm.h.

Member Function Documentation

◆ parse_ethernet()

ethernet_frame eth::ethernet_frame::parse_ethernet ( nonstd::span< const std::uint8_t > frame)
static

Definition at line 3 of file eth_tlm.cpp.

Member Data Documentation

◆ etherType_or_len

std::uint16_t eth::ethernet_frame::etherType_or_len = 0

Definition at line 66 of file eth_tlm.h.

◆ has_vlan

bool eth::ethernet_frame::has_vlan = false

Definition at line 59 of file eth_tlm.h.

◆ kind

ether_kind eth::ethernet_frame::kind = ether_kind::ETHER_TYPE

Definition at line 65 of file eth_tlm.h.

◆ l2

ethernet_header eth::ethernet_frame::l2

Definition at line 58 of file eth_tlm.h.

◆ payload

nonstd::span<const std::uint8_t> eth::ethernet_frame::payload

Definition at line 67 of file eth_tlm.h.

◆ vlan_dei

bool eth::ethernet_frame::vlan_dei = false

Definition at line 63 of file eth_tlm.h.

◆ vlan_id

std::uint16_t eth::ethernet_frame::vlan_id = 0

Definition at line 61 of file eth_tlm.h.

◆ vlan_pcp

std::uint16_t eth::ethernet_frame::vlan_pcp = 0

Definition at line 62 of file eth_tlm.h.

◆ vlan_tpid

std::uint16_t eth::ethernet_frame::vlan_tpid = 0

Definition at line 60 of file eth_tlm.h.


The documentation for this struct was generated from the following files:
  • /home/eyck/Projects/MINRES/SystemC-Components/src/interfaces/eth/eth_tlm.h
  • /home/eyck/Projects/MINRES/SystemC-Components/src/interfaces/eth/eth_tlm.cpp