PcapPlusPlus
Next
|
#include <IgmpLayer.h>
Public Member Functions | |
IgmpV1Layer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) | |
IgmpV1Layer (IgmpType type, const IPv4Address &groupAddr=IPv4Address()) | |
~IgmpV1Layer () override=default | |
void | computeCalculateFields () override |
Public Member Functions inherited from pcpp::IgmpLayer | |
igmp_header * | getIgmpHeader () const |
IPv4Address | getGroupAddress () const |
void | setGroupAddress (const IPv4Address &groupAddr) |
IgmpType | getType () const |
void | setType (IgmpType type) |
void | parseNextLayer () override |
size_t | getHeaderLen () const override |
std::string | toString () const override |
OsiModelLayer | getOsiModelLayer () const override |
Public Member Functions inherited from pcpp::Layer | |
~Layer () override | |
Layer * | getNextLayer () const |
Layer * | getPrevLayer () const |
ProtocolType | getProtocol () const |
bool | isMemberOfProtocolFamily (ProtocolTypeFamily protocolTypeFamily) 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 override |
Additional Inherited Members | |
Static Public Member Functions inherited from pcpp::IgmpLayer | |
static ProtocolType | getIGMPVerFromData (uint8_t *data, size_t dataLen, bool &isQuery) |
Represents IGMPv1 (Internet Group Management Protocol ver 1) layer. This class represents all the different messages of IGMPv1
|
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 |
|
inlineexplicit |
A constructor that allocates a new IGMPv1 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 if not provided |
|
overridedefault |
A destructor for this layer (does nothing)
|
overridevirtual |
Calculate the IGMP checksum and set igmp_header::maxResponseTime to 0 (this field is unused in IGMPv1)
Implements pcpp::Layer.