PcapPlusPlus
Next
|
#include <IPSecLayer.h>
Public Member Functions | |
AuthenticationHeaderLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) | |
ipsec_authentication_header * | getAHHeader () const |
uint32_t | getSPI () const |
uint32_t | getSequenceNumber () const |
size_t | getICVLength () const |
uint8_t * | getICVBytes () const |
std::string | getICVHexStream () const |
size_t | getHeaderLen () const override |
void | parseNextLayer () override |
void | computeCalculateFields () 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 an IPSec AuthenticationHeader (AH) 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 |
|
inlineoverridevirtual |
Does nothing for this layer
Implements pcpp::Layer.
|
inline |
Get a pointer to the raw AH header. Notice this points directly to the data, so every change will change the actual packet data
|
inlineoverridevirtual |
Implements pcpp::Layer.
uint8_t* pcpp::AuthenticationHeaderLayer::getICVBytes | ( | ) | const |
std::string pcpp::AuthenticationHeaderLayer::getICVHexStream | ( | ) | const |
size_t pcpp::AuthenticationHeaderLayer::getICVLength | ( | ) | const |
|
inlineoverridevirtual |
Implements pcpp::Layer.
uint32_t pcpp::AuthenticationHeaderLayer::getSequenceNumber | ( | ) | const |
uint32_t pcpp::AuthenticationHeaderLayer::getSPI | ( | ) | const |
|
inlinestatic |
A static method that validates the input data
[in] | data | The pointer to the beginning of a byte stream of a AuthenticationHeader layer |
[in] | dataLen | The length of byte stream |
|
overridevirtual |
Currently identifies the following next layers: UdpLayer, TcpLayer, IPv4Layer, IPv6Layer and ESPLayer. Otherwise sets PayloadLayer
Implements pcpp::Layer.
|
overridevirtual |
Implements pcpp::Layer.