Net::Frame::Layer::HSRP - Hot Standby Router Protocol layer object
use Net::Frame::Simple; use Net::Frame::Layer::HSRP qw(:consts); my $layer = Net::Frame::Layer::HSRP->new( version => NF_HSRP_VERSION_1, opcode => NF_HSRP_OPCODE_HELLO, state => NF_HSRP_STATE_STANDBY, helloTime => 3, holdTime => 10, priority => 100, group => 1, reserved => 0, authData => "cisco\0\0\0", virtualIp => '127.0.0.1', ); # # Read a raw layer # my $layer = Net::Frame::Layer::HSRP->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 HSRP layer.
RFC: ftp://ftp.rfc-editor.org/in-notes/rfc2281.txt
See also Net::Frame::Layer for other attributes and methods.
HSRP protocol version. See CONSTANTS for more information.
HSRP opcode. See CONSTANTS for more information.
HSRP state. See CONSTANTS for more information.
Default set to 3.
Default set to 10.
Default set to 100.
HSRP group.
Clear text authentication data. Default set to "cisco\0\0\0".
HSRP virtual IP.
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.
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::HSRP qw(:consts);
Default Layer 2 destination addresses.
Default Layer 3 destination addresses.
Default UDP port.
HSRP version.
HSRP opcodes.
HSRP states.
Currently only supports HSRP version 1.
Net::Frame::Layer
Michael Vincent
Copyright (c) 2013, Michael Vincent
You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.
To install Net::Frame::Layer::HSRP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Frame::Layer::HSRP
CPAN shell
perl -MCPAN -e shell install Net::Frame::Layer::HSRP
For more information on module installation, please visit the detailed CPAN module installation guide.