Net::Packet::CDP::TypeSoftwareVersionNet::Packet::CDP::TypeSoftwareVersion is a Perl module for Cisco Discovery Protocol Software Version extension header. | |
Download |
Net::Packet::CDP::TypeSoftwareVersion Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Patrice Auffret
- Publisher web site:
- http://search.cpan.org/~gomor/Net-Packet-3.25/lib/Net/Packet/CDP/TypeSoftwareVersion.pm
Net::Packet::CDP::TypeSoftwareVersion Tags
Net::Packet::CDP::TypeSoftwareVersion Description
Net::Packet::CDP::TypeSoftwareVersion is a Perl module for Cisco Discovery Protocol Software Version extension header. Net::Packet::CDP::TypeSoftwareVersion is a Perl module for Cisco Discovery Protocol Software Version extension header.SYNOPSIS use Net::Packet::Consts qw(:cdp); require Net::Packet::CDP::TypeSoftwareVersion; # Build a layer my $layer = Net::Packet::CDP::TypeSoftwareVersion->new( type => NP_CDP_TYPE_SOFTWARE_VERSION, length => 8, softwareVersion => 'GGGG', ); $layer->pack; print 'RAW: '.unpack('H*', $layer->raw)."n"; # Read a raw layer my $layer = Net::Packet::CDP::TypeSoftwareVersion->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 Cisco Discovery Protocol Software Version type extension header. Requirements: · Perl
Net::Packet::CDP::TypeSoftwareVersion Related Software