NAME

Net::Frame::Layer::IGMP::v3Report - IGMP version 3 Report Message

SYNOPSIS

use Net::Frame::Simple;
use Net::Frame::Layer::IGMP qw(:consts);

my $layer = Net::Frame::Layer::IGMP::v3Report->new(
   type             => NF_IGMP_REPORTv3TYPE_MODEINCLUDE,
   auxDataLen       => 0,
   numSources       => 0,
   multicastAddress => '0.0.0.0',
   sourceAddress    => [],
   auxData          => '',
);

#
# Read a raw layer
#

my $layer = Net::Frame::Layer::IGMP::v3Report->new(raw => $raw);

print $layer->print."\n";
print 'PAYLOAD: '.unpack('H*', $layer->payload)."\n"
   if $layer->payload;

DESCRIPTION

This modules implements the encoding and decoding of the IGMP version 3 Report message.

RFC: ftp://ftp.rfc-editor.org/in-notes/rfc3376.txt

See also Net::Frame::Layer for other attributes and methods.

ATTRIBUTES

type

Record type.

auxDataLen

Length of the Auxiliary Data field in units of 32-bit words.

numSources

Number of sources present in report.

multicastAddress

Multicast address to which this report pertains.

sourceAddress

Array of numSources IP unicast addresses.

auxData

Additional information.

The following are inherited attributes. See Net::Frame::Layer for more information.

raw
payload
nextLayer

METHODS

new
new (hash)

Object constructor. You can pass attributes that will overwrite default ones. See SYNOPSIS for default values.

The following are inherited methods. Some of them may be overriden in this layer, and some others may not be meaningful in this layer. See Net::Frame::Layer for more information.

layer
computeLengths
pack
unpack
encapsulate
getLength
getPayloadLength
print
dump

CONSTANTS

Load them: use Net::Frame::Layer::IGMP qw(:consts);

NF_IGMP_REPORTv3TYPE_MODEINCLUDE
NF_IGMP_REPORTv3TYPE_MODEEXCLUDE
NF_IGMP_REPORTv3TYPE_CHANGEINCLUDE
NF_IGMP_REPORTv3TYPE_CHANGEEXCLUDE
NF_IGMP_REPORTv3TYPE_ALLOWNEW
NF_IGMP_REPORTv3TYPE_BLOCKOLD

IGMP version 3 Report message types.

SEE ALSO

Net::Frame::Layer

AUTHOR

Michael Vincent

COPYRIGHT AND LICENSE

Copyright (c) 2013, Michael Vincent

You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.