PcapPlusPlus
|
#include <IgmpLayer.h>
Public Member Functions | |
IgmpV2Layer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) | |
IgmpV2Layer (IgmpType type, const IPv4Address &groupAddr=IPv4Address::Zero, uint8_t maxResponseTime=0) | |
~IgmpV2Layer () | |
void | computeCalculateFields () |
Public Member Functions inherited from pcpp::IgmpLayer | |
igmp_header * | getIgmpHeader () |
IPv4Address | getGroupAddress () |
void | setGroupAddress (const IPv4Address &groupAddr) |
IgmpType | getType () |
void | setType (IgmpType type) |
void | parseNextLayer () |
size_t | getHeaderLen () |
std::string | toString () |
OsiModelLayer | getOsiModelLayer () |
Public Member Functions inherited from pcpp::Layer | |
virtual | ~Layer () |
Layer * | getNextLayer () |
Layer * | getPrevLayer () |
ProtocolType | getProtocol () |
uint8_t * | getData () |
size_t | getDataLen () |
uint8_t * | getLayerPayload () |
size_t | getLayerPayloadSize () |
bool | isAllocatedToPacket () |
void | copyData (uint8_t *toArr) |
uint8_t * | getDataPtr (size_t offset=0) |
Additional Inherited Members | |
Static Public Member Functions inherited from pcpp::IgmpLayer | |
static ProtocolType | getIGMPVerFromData (uint8_t *data, size_t dataLen, bool &isQuery) |
Represents IGMPv2 (Internet Group Management Protocol ver 2) layer. This class represents all the different messages of IGMPv2
pcpp::IgmpV2Layer::IgmpV2Layer | ( | uint8_t * | data, |
size_t | dataLen, | ||
Layer * | prevLayer, | ||
Packet * | packet | ||
) |
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::IgmpV2Layer::IgmpV2Layer | ( | IgmpType | type, |
const IPv4Address & | groupAddr = IPv4Address::Zero , |
||
uint8_t | maxResponseTime = 0 |
||
) |
A constructor that allocates a new IGMPv2 header
[in] | type | The message type to set |
[in] | groupAddr | The multicast address to set. This is an optional parameter and has a default value of IPv4Address::Zero |
[in] | maxResponseTime | The max response time to set. This is an optional parameter and has a default value of 0 if not provided |
|
inline |
A destructor for this layer (does nothing)
|
virtual |
Calculate the IGMP checksum
Implements pcpp::Layer.