logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Net::Frame::Layer::IPv6::Fragment - Internet Protocol v6 Fragment Extension Header layer object

Attributes

nextHeader
           Protocol number of the next header after the Fragment header.

       reserved
           Not used; set to zeroes.

       fragmentOffset
           Specifies the offset, or position, in the overall message where the data in this fragment goes. It is
           specified  in  units  of 8 bytes (64 bits) and used in a manner very similar to the field of the same
           name in the IPv4 header.

       res Not used; set to zeroes.

       mFlag
           Same as the flag of the same name in the IPv4 header - when set to 0, indicates the last fragment  in
           a message; when set to 1, indicates that more fragments are yet to come in the fragmented message.

       identification
           Same  as  the  field  of  the  same  name  in the IPv4 header, but expanded to 32 bits. It contains a
           specific value that is common to each of the fragments belonging to a particular message,  to  ensure
           that pieces from different fragmented messages are not mixed together.

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

       rawpayloadnextLayer

Author

       Michael Vincent

Constants

       No constants here.

Description

       This modules implements the encoding and decoding of the IPv6 Fragment Extension Header layer.

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

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

Methods

newnew (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 overridden in this layer, and  some  others  may
       not be meaningful in this layer. See Net::Frame::Layer for more information.

       layercomputeLengthscomputeChecksumspackunpackencapsulategetLengthgetPayloadLengthprintdump

Name

       Net::Frame::Layer::IPv6::Fragment - Internet Protocol v6 Fragment Extension Header layer object

See Also

       Net::Frame::Layer

Synopsis

          use Net::Frame::Simple;
          use Net::Frame::Layer::IPv6::Fragment;

          my $icmp = Net::Frame::Layer::IPv6::Fragment->new(
             nextHeader     => NF_IPv6_PROTOCOL_TCP,
             reserved       => 0,
             fragmentOffset => 0,
             res            => 0,
             mFlag          => 0,
             identification => 0
          );

          #
          # Read a raw layer
          #

          my $layer = Net::Frame::Layer::IPv6::Fragment->new(raw => $raw);

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

See Also