24 static_assert(
sizeof(
llc_header) == 3,
"llc_header size is not 3 bytes");
37 :
Layer(data, dataLen, prevLayer, packet,
LLC)
44 LLCLayer(uint8_t dsap, uint8_t ssap, uint8_t control);
Definition: LLCLayer.h:29
OsiModelLayer getOsiModelLayer() const override
Definition: LLCLayer.h:72
void parseNextLayer() override
Parses the next layer. Currently only STP supported as next layer.
size_t getHeaderLen() const override
Definition: LLCLayer.h:63
void computeCalculateFields() override
Does nothing for this layer.
Definition: LLCLayer.h:59
LLCLayer(uint8_t dsap, uint8_t ssap, uint8_t control)
LLCLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: LLCLayer.h:36
llc_header * getLlcHeader() const
Definition: LLCLayer.h:48
static bool isDataValid(const uint8_t *data, size_t dataLen)
std::string toString() const override
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
An enum representing OSI model layers.
Definition: ProtocolType.h:225
@ OsiModelDataLinkLayer
Data link layer (layer 2)
Definition: ProtocolType.h:229
const ProtocolType LLC
Logical Link Control (LLC)
Definition: ProtocolType.h:176