PcapPlusPlus
22.05
|
#include <IPSecLayer.h>
Public Member Functions | |
ESPLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) | |
uint32_t | getSPI () const |
uint32_t | getSequenceNumber () const |
size_t | getHeaderLen () const |
void | parseNextLayer () |
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 |
Static Public Member Functions | |
static bool | isDataValid (const uint8_t *data, size_t dataLen) |
Represents an IPSec Encapsulating Security Payload (ESP) 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] | prevLayer | A pointer to the previous layer |
[in] | packet | A pointer to the Packet instance where layer will be stored in |
|
inlinevirtual |
Does nothing for this layer
Implements pcpp::Layer.
|
inlinevirtual |
Implements pcpp::Layer.
|
inlinevirtual |
Implements pcpp::Layer.
uint32_t pcpp::ESPLayer::getSequenceNumber | ( | ) | const |
uint32_t pcpp::ESPLayer::getSPI | ( | ) | const |
|
inlinestatic |
A static method that validates the input data
[in] | data | The pointer to the beginning of a byte stream of a ESP layer |
[in] | dataLen | The length of byte stream |
|
virtual |
The payload of an ESP layer is encrypted, hence the next layer is always a generic payload (PayloadLayer)
Implements pcpp::Layer.
|
virtual |
Implements pcpp::Layer.