|
PcapPlusPlus
22.11
|
#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 () |
| Parses the next layer. Currently only STP supported as next layer. | |
| void | computeCalculateFields () |
| Does nothing for this layer. | |
| size_t | getHeaderLen () const |
| std::string | toString () const |
| OsiModelLayer | getOsiModelLayer () const |
Public Member Functions inherited from pcpp::Layer | |
| virtual | ~Layer () |
| Layer * | getNextLayer () const |
| Layer * | getPrevLayer () const |
| ProtocolType | getProtocol () 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 |
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 |
|
inlinevirtual |
Implements pcpp::Layer.
|
inline |
Get a pointer to Logical Link Control (LLC) layer header
|
inlinevirtual |
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 |
|
virtual |
Implements pcpp::Layer.