Net::Frame::Layer::IGMP - Internet Group Management Protocol layer object
use Net::Frame::Simple; use Net::Frame::Layer::IGMP qw(:consts); my $layer = Net::Frame::Layer::IGMP->new( type => NF_IGMP_TYPE_QUERY, maxResp => 0, checksum => 0, groupAddress => '0.0.0.0', ); # v3 Report my $layer = Net::Frame::Layer::IGMP->new( type => NF_IGMP_TYPE_REPORTv3, maxResp => 0, checksum => 0, reserved => 0, numGroupRecs => 0, ); # # Read a raw layer # my $layer = Net::Frame::Layer::IGMP->new(raw => $raw); print $layer->print."\n"; print 'PAYLOAD: '.unpack('H*', $layer->payload)."\n" if $layer->payload;
This modules implements the encoding and decoding of the IGMP layer.
RFC: ftp://ftp.rfc-editor.org/in-notes/rfc1112.txt
RFC: ftp://ftp.rfc-editor.org/in-notes/rfc2236.txt
RFC: ftp://ftp.rfc-editor.org/in-notes/rfc3376.txt
See also Net::Frame::Layer for other attributes and methods.
IGMP message type. See CONSTANTS for more information.
Max response time (version 2) or code (version 3). Unused in version 1.
Message checksum.
Multicast group address.
The following are inherited attributes. See Net::Frame::Layer for more information.
Object constructor. You can pass attributes that will overwrite default ones. See SYNOPSIS for default values.
Object constructor. You can pass attributes that will overwrite default ones. Default values:
my $layer = Net::Frame::Layer::IGMP->new( type => NF_IGMP_TYPE_REPORTv3, maxResp => 0, checksum => 0, reserved => 0, numGroupRecs => 0, );
Computes the IGMP checksum.
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.
Load them: use Net::Frame::Layer::IGMP qw(:consts);
Default Layer 2 destination addresses.
Default Layer 3 destination addresses.
IGMP message types.
Net::Frame::Layer
Michael Vincent
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.
To install Net::Frame::Layer::IGMP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Frame::Layer::IGMP
CPAN shell
perl -MCPAN -e shell install Net::Frame::Layer::IGMP
For more information on module installation, please visit the detailed CPAN module installation guide.