PcapPlusPlus  Next
pcpp::igmpv3_group_record Struct Reference

#include <IgmpLayer.h>

Public Member Functions

IPv4Address getMulticastAddress () const
 
uint16_t getSourceAddressCount () const
 
IPv4Address getSourceAddressAtIndex (int index) const
 
size_t getRecordLen () const
 

Public Attributes

uint8_t recordType
 Group record type.
 
uint8_t auxDataLen
 Contains the length of the Auxiliary Data field in this Group Record. A value other than 0 isn't supported.
 
uint16_t numOfSources
 Specifies how many source addresses are present in this Group Record.
 
uint32_t multicastAddress
 Contains the IP multicast address to which this Group Record pertains.
 
uint8_t sourceAddresses []
 A vector of n IP unicast addresses, where n is the value in this record's Number of Sources field.
 

Detailed Description

A block of fields containing information pertaining to the sender's membership in a single multicast group on the interface from which the Report is sent. Relevant only for IGMPv3 membership report messages

Member Function Documentation

◆ getMulticastAddress()

IPv4Address pcpp::igmpv3_group_record::getMulticastAddress ( ) const
inline
Returns
The multicast address in igmpv3_group_record::multicastAddress as IPv4Address instance

◆ getRecordLen()

size_t pcpp::igmpv3_group_record::getRecordLen ( ) const
Returns
The total size in bytes of the group record

◆ getSourceAddressAtIndex()

IPv4Address pcpp::igmpv3_group_record::getSourceAddressAtIndex ( int  index) const

Get the source address at a certain index

Parameters
[in]indexThe index of the source address in the group record
Returns
The source address in the requested index. If index is negative or higher than the number of source addresses in this group record the value if IPv4Address::Zero is returned

◆ getSourceAddressCount()

uint16_t pcpp::igmpv3_group_record::getSourceAddressCount ( ) const
Returns
The number of source addresses in this group record