The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Frame::Layer::ICMPv6::MLD::Query - MLD Query Message

SYNOPSIS

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

   my $layer = Net::Frame::Layer::ICMPv6::MLD::Query->new(
      resv          => 0,
      sFlag         => 0,
      qrv           => 2,
      qqic          => 125,
      numSources    => 0,
      sourceAddress => [],
   );

   #
   # Read a raw layer
   #

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

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

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

ATTRIBUTES

resv

Reserved.

sFlag

Suppress router-side processing.

qrv

Querier's robustness variable.

qqic

Querier's query interval code.

numSources

Number of sources present in query.

sourceAddress

Array of numSources IPv6 unicast addresses.

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

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.