PcapPlusPlus
23.09
|
#include <IcmpV6Layer.h>
Public Types | |
enum | ICMPv6EchoType { REQUEST, REPLY } |
Public Member Functions | |
ICMPv6EchoLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) | |
ICMPv6EchoLayer (ICMPv6EchoType echoType, uint16_t id, uint16_t sequence, const uint8_t *data, size_t dataLen) | |
uint16_t | getIdentifier () const |
uint16_t | getSequenceNr () const |
size_t | getEchoDataLen () const |
uint8_t * | getEchoDataPtr () const |
std::string | toString () const |
Public Member Functions inherited from pcpp::IcmpV6Layer | |
IcmpV6Layer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) | |
IcmpV6Layer (ICMPv6MessageType msgType, uint8_t code, const uint8_t *data, size_t dataLen) | |
bool | isMessageOfType (ICMPv6MessageType type) const |
ICMPv6MessageType | getMessageType () const |
uint8_t | getCode () const |
uint16_t | getChecksum () const |
void | parseNextLayer () |
size_t | getHeaderLen () const |
void | computeCalculateFields () |
OsiModelLayer | getOsiModelLayer () const |
Public Member Functions inherited from pcpp::Layer | |
virtual | ~Layer () |
Layer * | getNextLayer () const |
Layer * | getPrevLayer () const |
ProtocolType | getProtocol () 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 |
Additional Inherited Members | |
Static Public Member Functions inherited from pcpp::IcmpV6Layer | |
static Layer * | parseIcmpV6Layer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
Represents an ICMPv6 echo request/reply protocol 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 |
pcpp::ICMPv6EchoLayer::ICMPv6EchoLayer | ( | ICMPv6EchoType | echoType, |
uint16_t | id, | ||
uint16_t | sequence, | ||
const uint8_t * | data, | ||
size_t | dataLen | ||
) |
A constructor for a new echo request/reply layer
[in] | echoType | The type of the echo message |
[in] | id | Echo request identifier |
[in] | sequence | Echo request sequence number |
[in] | data | A pointer to echo request payload to set |
[in] | dataLen | The length of the echo request payload |
|
inline |
|
inline |
uint16_t pcpp::ICMPv6EchoLayer::getIdentifier | ( | ) | const |
uint16_t pcpp::ICMPv6EchoLayer::getSequenceNr | ( | ) | const |
|
virtual |
Reimplemented from pcpp::IcmpV6Layer.