NAME

Net::Frame::Layer::ICMPv6::MLD::Report::Record - MLD Report Record Message

SYNOPSIS

use Net::Frame::Simple;
use Net::Frame::Layer::ICMPv6::MLD qw(:consts);

my $layer = Net::Frame::Layer::ICMPv6::MLD::Report::Record->new(
   type             => NF_MLD_REPORTv3TYPE_MODEINCLUDE,
   auxDataLen       => 0,
   numSources       => 0,
   multicastAddress => '::',
   sourceAddress    => [],
   auxData          => '',
);

#
# Read a raw layer
#

my $layer = Net::Frame::Layer::ICMPv6::MLD::Report::Record->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 MLD Report Record message.

RFC: ftp://ftp.rfc-editor.org/in-notes/rfc3810.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 IPv6 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::ICMPv6::MLD qw(:consts);

NF_MLD_REPORTv2TYPE_MODEINCLUDE
NF_MLD_REPORTv2TYPE_MODEEXCLUDE
NF_MLD_REPORTv2TYPE_CHANGEINCLUDE
NF_MLD_REPORTv2TYPE_CHANGEEXCLUDE
NF_MLD_REPORTv2TYPE_ALLOWNEW
NF_MLD_REPORTv2TYPE_BLOCKOLD

MLD version 2 Report message types.

SEE ALSO

Net::Frame::Layer, Net::Frame::Layer::ICMPv6

AUTHOR

Michael Vincent

COPYRIGHT AND LICENSE

Copyright (c) 2017, Michael Vincent

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