NAME

Net::Frame::Layer::RIPng::v1 - Routing Information Protocol ng v1 layer object

SYNOPSIS

use Net::Frame::Layer::RIP::v1 qw(:consts);

my $ripngv1 = Net::Frame::Layer::RIPng::v1->new(
   prefix       => '::',
   routeTag     => 0,
   prefixLength => 64,
   metric       => 1,
);
$ripngv1->pack;

print 'RAW: '.$ripngv1->dump."\n";

# Read a raw layer
my $layer = Net::Frame::Layer::RIPng::v1->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 RIPng v1 layer.

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

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

ATTRIBUTES

prefix

IPv6 prefix.

routeTag

Attribute assigned to a route for separating routes within RIP domain.

prefixLength

IPv6 prefix length of prefix.

metric

Metric for prefix.

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.

full
full (hash)

Object constructor. Same as new but with RIPng Request header, requests full routing table. You can pass attributes that will overwrite default ones. Default values: all fields 0 with NF_RIPNG_METRIC_INFINITY set.

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

CONSTANTS

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

NF_RIPNG_METRIC_INFINITY

Infinity metric (16).

SEE ALSO

Net::Frame::Layer

AUTHOR

Michael Vincent

COPYRIGHT AND LICENSE

Copyright (c) 2012, Michael Vincent

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