PcapPlusPlus
22.11
|
#include <NdpLayer.h>
Classes | |
struct | ndpneighborsolicitationhdr |
Public Member Functions | |
NDPNeighborSolicitationLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) | |
NDPNeighborSolicitationLayer (uint8_t code, const IPv6Address &targetIP) | |
NDPNeighborSolicitationLayer (uint8_t code, const IPv6Address &targetIP, const MacAddress &srcMac) | |
IPv6Address | getTargetIP () const |
bool | hasLinkLayerAddress () const |
MacAddress | getLinkLayerAddress () const |
std::string | toString () const |
Public Member Functions inherited from pcpp::NDPLayerBase | |
size_t | getNdpOptionCount () const |
NdpOption | getNdpOption (NDPNeighborOptionTypes option) const |
NdpOption | getFirstNdpOption () const |
NdpOption | getNextNdpOption (NdpOption &option) const |
NdpOption | addNdpOption (const NdpOptionBuilder &optionBuilder) |
bool | removeAllNdpOptions () |
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 a NDP Neighbor Solicitation 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::NDPNeighborSolicitationLayer::NDPNeighborSolicitationLayer | ( | uint8_t | code, |
const IPv6Address & | targetIP | ||
) |
A constructor for a new NDPNeighborSolicitationLayer object
[in] | code | Code field |
[in] | targetIP | Target IP address for which the solicitation shall be created |
pcpp::NDPNeighborSolicitationLayer::NDPNeighborSolicitationLayer | ( | uint8_t | code, |
const IPv6Address & | targetIP, | ||
const MacAddress & | srcMac | ||
) |
A constructor for a new NDPNeighborSolicitationLayer object
[in] | code | Code field |
[in] | targetIP | Target IP address for which the solicitation shall be created |
[in] | srcMac | Mac address which shall be put in the linklayer option |
MacAddress pcpp::NDPNeighborSolicitationLayer::getLinkLayerAddress | ( | ) | const |
Get the Link Layer Address
|
inline |
bool pcpp::NDPNeighborSolicitationLayer::hasLinkLayerAddress | ( | ) | const |
Checks if the layer has a link layer address option set
|
virtual |
Reimplemented from pcpp::IcmpV6Layer.