105 static inline bool isDataValid(
const uint8_t* data,
size_t dataLen);
156 :
Layer(data, dataLen, prevLayer, packet,
ESP)
161 return reinterpret_cast<ipsec_esp*
>(m_Data);
180 static inline bool isDataValid(
const uint8_t* data,
size_t dataLen);
223 size_t payloadLen = 4 * (data[1] + 2);
232 return data && dataLen >=
sizeof(
ipsec_esp);
Definition: IPSecLayer.h:147
std::string toString() const override
ESPLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: IPSecLayer.h:155
OsiModelLayer getOsiModelLayer() const override
Definition: IPSecLayer.h:205
uint32_t getSequenceNumber() const
size_t getHeaderLen() const override
Definition: IPSecLayer.h:187
static bool isDataValid(const uint8_t *data, size_t dataLen)
Definition: IPSecLayer.h:230
void parseNextLayer() override
void computeCalculateFields() override
Definition: IPSecLayer.h:200
The main namespace for the PcapPlusPlus lib.
const ProtocolType ESP
Definition: ProtocolType.h:248
const ProtocolType AuthenticationHeader
Definition: ProtocolType.h:243
OsiModelLayer
Definition: ProtocolType.h:364
@ OsiModelTransportLayer
Definition: ProtocolType.h:372
@ OsiModelNetworkLayer
Definition: ProtocolType.h:370
Definition: IPSecLayer.h:39
uint32_t sequenceNumber
Definition: IPSecLayer.h:43
uint32_t spi
Definition: IPSecLayer.h:41