1 #ifndef PACKETPP_IPSEC_LAYER 2 #define PACKETPP_IPSEC_LAYER 72 uint32_t getSPI()
const;
77 uint32_t getSequenceNumber()
const;
82 size_t getICVLength()
const;
87 uint8_t* getICVBytes()
const;
92 std::string getICVHexStream()
const;
100 static inline bool isDataValid(
const uint8_t* data,
size_t dataLen);
107 size_t getHeaderLen()
const {
return 4*(getAHHeader()->payloadLen + 2); }
112 void parseNextLayer();
119 std::string toString()
const;
150 uint32_t getSPI()
const;
155 uint32_t getSequenceNumber()
const;
163 static inline bool isDataValid(
const uint8_t* data,
size_t dataLen);
175 void parseNextLayer();
182 std::string toString()
const;
212 #endif // PACKETPP_IPSEC_LAYER The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:298
ESPLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: IPSecLayer.h:143
void computeCalculateFields()
Definition: IPSecLayer.h:180
static bool isDataValid(const uint8_t *data, size_t dataLen)
Definition: IPSecLayer.h:206
Definition: ProtocolType.h:305
Definition: IPSecLayer.h:39
uint32_t sequenceNumber
Definition: IPSecLayer.h:44
uint32_t spi
Definition: IPSecLayer.h:42
Definition: IPSecLayer.h:134
Definition: ProtocolType.h:307
size_t getHeaderLen() const
Definition: IPSecLayer.h:170
const ProtocolType ESP
Definition: ProtocolType.h:243
const ProtocolType AuthenticationHeader
Definition: ProtocolType.h:238
OsiModelLayer getOsiModelLayer() const
Definition: IPSecLayer.h:184