1 #ifndef PACKETPP_VLAN_LAYER 2 #define PACKETPP_VLAN_LAYER 6 #if defined(WIN32) || defined(WINx64) 25 #if (BYTE_ORDER == LITTLE_ENDIAN) 65 VlanLayer(
const uint16_t vlanID,
bool cfi, uint8_t priority, uint16_t etherType);
void setCFI(bool cfi)
Definition: VlanLayer.h:108
uint16_t getVlanID()
Definition: VlanLayer.h:81
Definition: VlanLayer.h:24
void setVlanID(uint16_t id)
Definition: VlanLayer.h:101
vlan_header * getVlanHeader()
Definition: VlanLayer.h:73
The main namespace for the PcapPlusPlus lib.
Definition: ProtocolType.h:213
uint16_t vlanID
Definition: VlanLayer.h:27
Definition: VlanLayer.h:47
uint16_t cfi
Definition: VlanLayer.h:27
uint8_t getPriority()
Definition: VlanLayer.h:93
OsiModelLayer
Definition: ProtocolType.h:208
void computeCalculateFields()
Definition: VlanLayer.h:132
void setPriority(uint8_t priority)
Definition: VlanLayer.h:115
size_t getHeaderLen()
Definition: VlanLayer.h:127
uint16_t etherType
Definition: VlanLayer.h:38
OsiModelLayer getOsiModelLayer()
Definition: VlanLayer.h:136
uint16_t priority
Definition: VlanLayer.h:27
VlanLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: VlanLayer.h:56
uint8_t getCFI()
Definition: VlanLayer.h:87
Definition: ProtocolType.h:76