PcapPlusPlus  Next
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               2
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Prio |C|         VLAN ID       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+