NAME
Net::Frame::Layer::ICMPv6::MLD - Multicast Listener Discovery layer object
SYNOPSIS
use Net::Frame::Simple;
use Net::Frame::Layer::ICMPv6::MLD qw(:consts);
my $layer = Net::Frame::Layer::ICMPv6::MLD->new(
maxResp => 0,
reserved => 0,
groupAddress => '::',
);
#
# Read a raw layer
#
my $layer = Net::Frame::Layer::ICMPv6::MLD->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 layer.
RFC: ftp://ftp.rfc-editor.org/in-notes/rfc3810.txt
See also Net::Frame::Layer for other attributes and methods.
ATTRIBUTES
- maxResp
-
Maximum time allowed before sending a responding report.
- reserved
-
Ignored - set to 0.
- groupAddress
-
Multicast group address.
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
- dump
CONSTANTS
Load them: use Net::Frame::Layer::ICMPv6::MLD qw(:consts);
- NF_MLD_ALLMLDRTRS_MAC
-
Default Layer 2 destination addresses.
- NF_MLD_ALLMLDRTRS
-
Default Layer 3 destination addresses.
- NF_MLD_TYPE_QUERY
- NF_MLD_TYPE_REPORTv1
- NF_MLD_TYPE_DONE
- NF_MLD_TYPE_REPORTv2
-
MLD 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.