Net::Frame::Layer::RIP::v2 - Routing Information Protocol v2 layer object
use Net::Frame::Layer::RIP::v2 qw(:consts); my $ripv2 = Net::Frame::Layer::RIP::v2->new( addressFamily => NF_RIP_V2_ADDRESSFAMILY_IPV4, routeTag => 0, address => '0.0.0.0', subnetMask => '0.0.0.0', nextHop => '0.0.0.0', metric => 1, ); $ripv2->pack; print 'RAW: '.$ripv2->dump."\n"; # Read a raw layer my $layer = Net::Frame::Layer::RIP::v2->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 RIP v2 layer.
See also Net::Frame::Layer for other attributes and methods.
Address family. See CONSTANTS for more information.
Attribute assigned to a route for separating routes within RIP domain.
Address information for route.
Subnet mask for
Next hop for
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. Same as new but with RIPv2 Request header, requests full routing table. You can pass attributes that will overwrite default ones. Default values: all fields 0 with NF_RIP_V2_METRIC_INFINITY set.
Object constructor. RIPv2 authentication entry. Only need to set authentication.
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::RIP::v2 qw(:consts);
Address family. Auth isn't really an address family, but indicates authentication. If used, this must be the first Route Table Entry after the RIPv2 header.
Authentication type. Only Simple (cleartext password) currently supported.
Infinity metric (16).
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.