Net::Frame::Layer::RIP - Routing Information Protocol layer object
use Net::Frame::Simple; use Net::Frame::Layer::RIP qw(:consts); my $layer = Net::Frame::Layer::RIP->new( command => NF_RIP_V2_COMMAND_REQUEST, version => 2, reserved => 0, ); # # Read a raw layer # my $layer = Net::Frame::Layer::RIP->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 layer.
See also Net::Frame::Layer for other attributes and methods.
RIP command. See CONSTANTS for more information.
RIP protocol version: 1 or 2 valid.
Default set to 0.
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.
These two methods are basically used to increase the speed when using recv method from Net::Frame::Simple. Usually, you write them when you need to write match method.
This method is mostly used internally. You pass a Net::Frame::Layer::RIP 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 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 qw(:consts);
Default destination Ethernet address, IPv4 address and UDP port.
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.