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
ESPLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: IPSecLayer.h:155
std::string toString() const
void computeCalculateFields()
Definition: IPSecLayer.h:200
size_t getHeaderLen() const
Definition: IPSecLayer.h:187
uint32_t getSequenceNumber() const
static bool isDataValid(const uint8_t *data, size_t dataLen)
Definition: IPSecLayer.h:230
OsiModelLayer getOsiModelLayer() const
Definition: IPSecLayer.h:205
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:354
@ OsiModelTransportLayer
Definition: ProtocolType.h:362
@ OsiModelNetworkLayer
Definition: ProtocolType.h:360
Definition: IPSecLayer.h:39
uint32_t sequenceNumber
Definition: IPSecLayer.h:43
uint32_t spi
Definition: IPSecLayer.h:41