GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::FRAME::LAYER::ICMPV6 (3)

.ds Aq ’

NAME

Net::Frame::Layer::ICMPv6 - Internet Control Message Protocol v6 layer object

CONTENTS

SYNOPSIS



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

   my $icmp = Net::Frame::Layer::ICMPv6->new(
      type     => NF_ICMPv6_TYPE_ECHO_REQUEST,
      code     => NF_ICMPv6_CODE_ZERO,
      checksum => 0,
   );

   # Build an ICMPv6 echo-request
   use Net::Frame::Layer::ICMPv6::Echo;
   my $echo = Net::Frame::Layer::ICMPv6::Echo->new(payload => echo);

   my $echoReq = Net::Frame::Simple->new(layers => [ $icmp, $echo ]);
   print $echoReq->print."\n";

   # Build an ICMPv6 neighbor-solicitation
   use Net::Frame::Layer::ICMPv6::NeighborSolicitation;
   my $solicit = Net::Frame::Layer::ICMPv6::NeighborSolicitation->new(
      targetAddress => $targetIpv6Address,
   );
   $icmp->type(NF_ICMPv6_TYPE_NEIGHBORSOLICITATION);

   my $nsReq = Net::Frame::Simple->new(layers => [ $icmp, $solicit ]);
   print $nsReq->print."\n";

   #
   # Read a raw layer
   #

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

RFC: http://www.rfc-editor.org/rfc/rfc4861.txt

RFC: http://www.rfc-editor.org/rfc/rfc4389.txt

RFC: http://www.rfc-editor.org/rfc/rfc4191.txt

RFC: http://www.rfc-editor.org/rfc/rfc3775.txt

RFC: http://www.rfc-editor.org/rfc/rfc2463.txt

RFC: http://www.rfc-editor.org/rfc/rfc2461.txt

RFC: http://www.rfc-editor.org/rfc/rfc2460.txt

See also <B>Net::Frame::LayerB> for other attributes and methods.

ATTRIBUTES

<B>typeB>
<B>codeB> Type and code fields. See <B>CONSTANTSB>.
<B>checksumB> The checksum of ICMPv6 header.
The following are inherited attributes. See <B>Net::Frame::LayerB> for more information.
<B>rawB>
<B>payloadB>
<B>nextLayerB>

METHODS

<B>newB>
<B>newB> (hash) Object constructor. You can pass attributes that will overwrite default ones. See <B>SYNOPSISB> for default values.
<B>computeChecksumsB> Computes the ICMPv6 checksum.
<B>getKeyB>
<B>getKeyReverseB> These two methods are basically used to increase the speed when using <B>recvB> method from <B>Net::Frame::SimpleB>. Usually, you write them when you need to write <B>matchB> method.
<B>matchB> (Net::Frame::Layer::ICMPv6 object) This method is mostly used internally. You pass a <B>Net::Frame::Layer::ICMPv6B> layer as a parameter, and it returns true if this is a response corresponding for the request, or returns false if not.
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 <B>Net::Frame::LayerB> for more information.
<B>layerB>
<B>computeLengthsB>
<B>computeChecksumsB>
<B>packB>
<B>unpackB>
<B>encapsulateB>
<B>getLengthB>
<B>getPayloadLengthB>
<B>printB>
<B>dumpB>

CONSTANTS

Load them: use Net::Frame::Layer::ICMPv6 qw(:consts);

Various types and codes for ICMPv6 header.
<B>NF_ICMPv6_CODE_ZEROB>
<B>NF_ICMPv6_TYPE_DESTUNREACHB>
<B>NF_ICMPv6_CODE_NOROUTEB>
<B>NF_ICMPv6_CODE_ADMINPROHIBITEDB>
<B>NF_ICMPv6_CODE_NOTASSIGNEDB>
<B>NF_ICMPv6_CODE_ADDRESSUNREACHB>
<B>NF_ICMPv6_CODE_PORTUNREACHB>
<B>NF_ICMPv6_CODE_FAILPOLICYB>
<B>NF_ICMPv6_CODE_REJECTROUTEB>
<B>NF_ICMPv6_TYPE_TOOBIGB>
<B>NF_ICMPv6_TYPE_TIMEEXCEEDB>
<B>NF_ICMPv6_CODE_HOPLIMITEXCEEDB>
<B>NF_ICMPv6_CODE_FRAGREASSEMBLYEXCEEDEDB>
<B>NF_ICMPv6_TYPE_PARAMETERPROBLEMB>
<B>NF_ICMPv6_CODE_ERRONEOUSHERDERFIELDB>
<B>NF_ICMPv6_CODE_UNKNOWNNEXTHEADERB>
<B>NF_ICMPv6_CODE_UNKNOWNOPTIONB>
<B>NF_ICMPv6_TYPE_ECHO_REQUESTB>
<B>NF_ICMPv6_TYPE_ECHO_REPLYB>
<B>NF_ICMPv6_TYPE_ROUTERSOLICITATIONB>
<B>NF_ICMPv6_TYPE_ROUTERADVERTISEMENTB>
<B>NF_ICMPv6_TYPE_NEIGHBORSOLICITATIONB>
<B>NF_ICMPv6_TYPE_NEIGHBORADVERTISEMENTB>
<B>NF_ICMPv6_OPTION_SOURCELINKLAYERADDRESSB>
<B>NF_ICMPv6_OPTION_TARGETLINKLAYERADDRESSB>
<B>NF_ICMPv6_OPTION_PREFIXINFORMATIONB>
<B>NF_ICMPv6_OPTION_REDIRECTEDHEADERB>
<B>NF_ICMPv6_OPTION_MTUB>
Various flags for some ICMPv6 messages.
<B>NF_ICMPv6_FLAG_ROUTERB>
<B>NF_ICMPv6_FLAG_SOLICITEDB>
<B>NF_ICMPv6_FLAG_OVERRIDEB>
<B>NF_ICMPv6_FLAG_MANAGEDADDRESSCONFIGURATIONB>
<B>NF_ICMPv6_FLAG_OTHERCONFIGURATIONB>
<B>NF_ICMPv6_FLAG_MOBILEIPv6HOMEAGENTB>
<B>NF_ICMPv6_FLAG_ROUTERSELECTIONPREFHIGHB>
<B>NF_ICMPv6_FLAG_ROUTERSELECTIONPREFMEDIUMB>
<B>NF_ICMPv6_FLAG_ROUTERSELECTIONPREFLOWB>
<B>NF_ICMPv6_FLAG_ROUTERSELECTIONPREFRESERVEDB>
<B>NF_ICMPv6_FLAG_NEIGHBORDISCOVERYPROXYB>

SEE ALSO

Net::Frame::Layer

AUTHOR

Patrice <GomoR> Auffret

COPYRIGHT AND LICENSE

Copyright (c) 2006-2014, Patrice <GomoR> Auffret

You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::FRAME::LAYER::ICMPV6 (3) 2014-04-09

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.