PcapPlusPlus  20.08+
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
 
uint8_t auxDataLen
 
uint16_t numOfSources
 
uint32_t multicastAddress
 
uint8_t sourceAddresses []
 

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

Member Data Documentation

◆ auxDataLen

uint8_t pcpp::igmpv3_group_record::auxDataLen

Contains the length of the Auxiliary Data field in this Group Record. A value other than 0 isn't supported

◆ multicastAddress

uint32_t pcpp::igmpv3_group_record::multicastAddress

Contains the IP multicast address to which this Group Record pertains

◆ numOfSources

uint16_t pcpp::igmpv3_group_record::numOfSources

Specifies how many source addresses are present in this Group Record

◆ recordType

uint8_t pcpp::igmpv3_group_record::recordType

Group record type

◆ sourceAddresses

uint8_t pcpp::igmpv3_group_record::sourceAddresses[]

A vector of n IP unicast addresses, where n is the value in this record's Number of Sources field