PcapPlusPlus
Next
|
#include <LLCLayer.h>
Public Member Functions | |
LLCLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) | |
LLCLayer (uint8_t dsap, uint8_t ssap, uint8_t control) | |
llc_header * | getLlcHeader () const |
void | parseNextLayer () override |
Parses the next layer. Currently only STP supported as next layer. | |
void | computeCalculateFields () override |
Does nothing for this layer. | |
size_t | getHeaderLen () const override |
std::string | toString () const override |
OsiModelLayer | getOsiModelLayer () const override |
Public Member Functions inherited from pcpp::Layer | |
~Layer () override | |
Layer * | getNextLayer () const |
Layer * | getPrevLayer () const |
ProtocolType | getProtocol () const |
bool | isMemberOfProtocolFamily (ProtocolTypeFamily protocolTypeFamily) const |
uint8_t * | getData () const |
size_t | getDataLen () const |
uint8_t * | getLayerPayload () const |
size_t | getLayerPayloadSize () const |
bool | isAllocatedToPacket () const |
void | copyData (uint8_t *toArr) const |
uint8_t * | getDataPtr (size_t offset=0) const override |
Static Public Member Functions | |
static bool | isDataValid (const uint8_t *data, size_t dataLen) |
Represents Logical Link Control layer messages
|
inline |
A constructor that creates the layer from an existing packet raw data
[in] | data | A pointer to the raw data (will be casted to llc_header) |
[in] | dataLen | Size of the data in bytes |
[in] | prevLayer | A pointer to the previous layer |
[in] | packet | A pointer to the Packet instance where layer will be stored in |
pcpp::LLCLayer::LLCLayer | ( | uint8_t | dsap, |
uint8_t | ssap, | ||
uint8_t | control | ||
) |
A constructor that creates the LLC layer from provided values
[in] | dsap | Destination Service Access Point |
[in] | ssap | Source Service Access Point |
[in] | control | Control Field |
|
inlineoverridevirtual |
Implements pcpp::Layer.
|
inline |
Get a pointer to Logical Link Control (LLC) layer header
|
inlineoverridevirtual |
Implements pcpp::Layer.
|
static |
A static method that validates the input data
[in] | data | The pointer to the beginning of a byte stream of an LLC packet |
[in] | dataLen | The length of the byte stream |
|
overridevirtual |
Implements pcpp::Layer.