Myra Canyon  v0.0.1-768
network control
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Myra::L2::Header_with_VLAN Struct Reference

Layer 2 can also have an optional 802.1Q VLAN tag, which pushes fields out by 4 bytes. More...

#include "L2.hpp"

Public Attributes

MAC dst_mac
 Destination MAC address. More...
 
MAC src_mac
 Source MAC address. More...
 
uint8_t vlan_tag [4]
 802.1Q VLAN tag. More...
 
uint16_t ethertype
 
uint8_t payload [0]
 Layer 3. More...
 

Detailed Description

Layer 2 can also have an optional 802.1Q VLAN tag, which pushes fields out by 4 bytes.

Note
Not included in this structure is the 32-bit (4-byte) CRC checksum inserted after the payload.
See also
Header

Member Data Documentation

MAC Myra::L2::Header_with_VLAN::dst_mac

Destination MAC address.

uint16_t Myra::L2::Header_with_VLAN::ethertype
See also
Ethertype
uint8_t Myra::L2::Header_with_VLAN::payload[0]

Layer 3.

MAC Myra::L2::Header_with_VLAN::src_mac

Source MAC address.

uint8_t Myra::L2::Header_with_VLAN::vlan_tag[4]

802.1Q VLAN tag.


The documentation for this struct was generated from the following file: