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
std::string toString() const override
uint16_t getVlanID() const
VlanLayer(const uint16_t vlanID, bool cfi, uint8_t priority, uint16_t etherType=0)
void parseNextLayer() override
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:71
void setPriority(uint8_t priority)
OsiModelLayer getOsiModelLayer() const override
Definition: VlanLayer.h:141
size_t getHeaderLen() const override
Definition: VlanLayer.h:129
void computeCalculateFields() override
void setVlanID(uint16_t id)
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:364
@ OsiModelDataLinkLayer
Definition: ProtocolType.h:368
const ProtocolType VLAN
Definition: ProtocolType.h:83