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::Destination - Internet Protocol v6 Destination Extension Header layer object

Attributes

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

       hdrExtLen
           The  length of the Destination Options header in 8-byte units, not including the first 8 bytes of the
           header.

       options
           A number of Net::Frame::Layer::IPv6::Option objects.

       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 Destination options 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.

       layercomputeLengthscomputeChecksumspackunpackencapsulategetLengthgetOptionsLengthgetPayloadLengthprintdump

Name

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

See Also

       Net::Frame::Layer

Synopsis

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

          my $ipv6eh = Net::Frame::Layer::IPv6::Destination->new(
             nextHeader => NF_IPv6_PROTOCOL_TCP,
             hdrExtLen  => 2,
             options    => []
          );

          #
          # Read a raw layer
          #

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

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

See Also