PcapPlusPlus
22.11
|
#include <NullLoopbackLayer.h>
Public Member Functions | |
NullLoopbackLayer (uint8_t *data, size_t dataLen, Packet *packet) | |
NullLoopbackLayer (uint32_t family) | |
~NullLoopbackLayer () | |
uint32_t | getFamily () const |
void | setFamily (uint32_t family) |
void | parseNextLayer () |
size_t | getHeaderLen () const |
void | computeCalculateFields () |
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 |
Represents a NULL/Loopback layer
|
inline |
A constructor that creates the layer from an existing packet raw data
[in] | data | A pointer to the raw data |
[in] | dataLen | Size of the data in bytes |
[in] | packet | A pointer to the Packet instance where layer will be stored in |
pcpp::NullLoopbackLayer::NullLoopbackLayer | ( | uint32_t | family | ) |
A constructor that allocates a new Null/Loopback header
[in] | family | The family protocol to set |
|
inline |
A destructor for this layer (does nothing)
|
inlinevirtual |
Does nothing for this layer
Implements pcpp::Layer.
uint32_t pcpp::NullLoopbackLayer::getFamily | ( | ) | const |
|
inlinevirtual |
Implements pcpp::Layer.
|
inlinevirtual |
Implements pcpp::Layer.
|
virtual |
Identifies the next layers by family:
Implements pcpp::Layer.
void pcpp::NullLoopbackLayer::setFamily | ( | uint32_t | family | ) |
Set a protocol family
[in] | family | The family protocol to set |
|
virtual |
Implements pcpp::Layer.