Net::Packet::CDP::Type - base class for Cisco Discovery Protocol extension headers


Net-Packet documentation Contained in the Net-Packet distribution.

Index


Code Index:

NAME

Top

Net::Packet::CDP::Type - base class for Cisco Discovery Protocol extension headers

DESCRIPTION

Top

This is the base class for Net::Packet::CDP various extension headers. For other attributes and methods, see Net::Packet::Layer and Net::Packet::Layer4.

It just provides those extension headers with inheritable attributes and methods.

ATTRIBUTES

Top

type - 16 bits
length - 16 bits

CONSTANTS

Top

See Net::Packet::CDP CONSTANTS.

AUTHOR

Top

Patrice <GomoR> Auffret

COPYRIGHT AND LICENSE

Top

RELATED MODULES

Top


Net-Packet documentation Contained in the Net-Packet distribution.

#
# $Id: Type.pm 1640 2009-11-09 17:58:27Z gomor $
#
package Net::Packet::CDP::Type;
use strict;
use warnings;

require Net::Packet::Layer4;
our @ISA = qw(Net::Packet::Layer4);

our @AS = qw(
   type
   length
);
__PACKAGE__->cgBuildIndices;
__PACKAGE__->cgBuildAccessorsScalar(\@AS);

no strict 'vars';

sub getLength { shift->[$__length] }

1;

__END__