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... | |
Layer 2 can also have an optional 802.1Q VLAN tag, which pushes fields out by 4 bytes.
MAC Myra::L2::Header_with_VLAN::dst_mac |
Destination MAC address.
uint16_t Myra::L2::Header_with_VLAN::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.