1 #ifndef PACKETPP_ICMPV6_LAYER 2 #define PACKETPP_ICMPV6_LAYER 102 #pragma pack(push, 1) 119 #pragma pack(push, 1) 144 :
Layer(data, dataLen, prevLayer, packet) { m_Protocol =
ICMPv6; }
165 static Layer *parseIcmpV6Layer(uint8_t *data,
size_t dataLen,
Layer *prevLayer,
Packet *packet);
181 uint8_t getCode()
const;
186 uint16_t getChecksum()
const;
201 void computeCalculateFields();
205 std::string toString()
const;
211 void calculateChecksum();
258 uint16_t getIdentifier()
const;
263 uint16_t getSequenceNr()
const;
275 std::string toString()
const;
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:333
Definition: IcmpV6Layer.h:133
uint16_t sequence
Definition: IcmpV6Layer.h:125
size_t getHeaderLen() const
Definition: IcmpV6Layer.h:196
Definition: IcmpV6Layer.h:103
IcmpV6Layer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: IcmpV6Layer.h:143
uint8_t code
Definition: IcmpV6Layer.h:109
Definition: ProtocolType.h:340
ICMPv6MessageType
Definition: IcmpV6Layer.h:18
Definition: IcmpV6Layer.h:228
size_t getEchoDataLen() const
Definition: IcmpV6Layer.h:268
ICMPv6EchoLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: IcmpV6Layer.h:240
uint8_t type
Definition: IcmpV6Layer.h:107
Definition: IcmpV6Layer.h:219
bool isMessageOfType(ICMPv6MessageType type) const
Definition: IcmpV6Layer.h:171
Definition: IcmpV6Layer.h:120
uint16_t id
Definition: IcmpV6Layer.h:123
void parseNextLayer()
Definition: IcmpV6Layer.h:191
ICMPv6EchoType
Definition: IcmpV6Layer.h:225
const ProtocolType ICMPv6
Definition: ProtocolType.h:273
OsiModelLayer getOsiModelLayer() const
Definition: IcmpV6Layer.h:203
uint8_t * getEchoDataPtr() const
Definition: IcmpV6Layer.h:273
uint16_t checksum
Definition: IcmpV6Layer.h:111