51 :
Layer(data, dataLen, prevLayer, packet,
VLAN)
62 VlanLayer(
const uint16_t vlanID,
bool cfi, uint8_t priority, uint16_t etherType = 0);
Definition: VlanLayer.h:42
OsiModelLayer getOsiModelLayer() const
Definition: VlanLayer.h:142
uint16_t getVlanID() const
size_t getHeaderLen() const
Definition: VlanLayer.h:130
VlanLayer(const uint16_t vlanID, bool cfi, uint8_t priority, uint16_t etherType=0)
std::string toString() const
uint8_t getPriority() const
VlanLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: VlanLayer.h:50
vlan_header * getVlanHeader() const
Definition: VlanLayer.h:72
void setPriority(uint8_t priority)
void computeCalculateFields()
void setVlanID(uint16_t id)
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:354
@ OsiModelDataLinkLayer
Definition: ProtocolType.h:358
const ProtocolType VLAN
Definition: ProtocolType.h:83