PcapPlusPlus  22.11
pcpp::vlan_header Struct Reference

#include <VlanLayer.h>

Public Attributes

uint16_t vlan
 
uint16_t etherType
 

Detailed Description

Represents a VLAN header

Member Data Documentation

◆ etherType

uint16_t pcpp::vlan_header::etherType

Ethernet type for next layer

◆ vlan

uint16_t pcpp::vlan_header::vlan
0                 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Prio |C|         VLAN ID     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+