1 #ifndef PACKETPP_VLAN_LAYER 2 #define PACKETPP_VLAN_LAYER 76 uint16_t getVlanID()
const;
82 uint8_t getCFI()
const;
88 uint8_t getPriority()
const;
96 void setVlanID(uint16_t
id);
103 void setCFI(
bool cfi);
110 void setPriority(uint8_t priority);
117 void parseNextLayer();
129 std::string toString()
const;
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:253
void computeCalculateFields()
Definition: VlanLayer.h:127
Definition: ProtocolType.h:258
size_t getHeaderLen() const
Definition: VlanLayer.h:122
const ProtocolType VLAN
Definition: ProtocolType.h:78
vlan_header * getVlanHeader() const
Definition: VlanLayer.h:68
VlanLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: VlanLayer.h:51
OsiModelLayer getOsiModelLayer() const
Definition: VlanLayer.h:131
Definition: VlanLayer.h:42