Don't unshift length from broken lldpRemManAddrTable implementations (G. Shtern)
This commit is contained in:
@@ -5,6 +5,7 @@ version 3.14 ()
|
|||||||
[ENHANCEMENTS]
|
[ENHANCEMENTS]
|
||||||
|
|
||||||
* Improvements to Mikrotik module (Alex Z)
|
* Improvements to Mikrotik module (Alex Z)
|
||||||
|
* Don't unshift length from broken lldpRemManAddrTable implementations (G. Shtern)
|
||||||
|
|
||||||
version 3.13 (2014-03-27)
|
version 3.13 (2014-03-27)
|
||||||
|
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ sub _lldp_addr_index {
|
|||||||
my @oids = split( /\./, $idx );
|
my @oids = split( /\./, $idx );
|
||||||
my $index = join( '.', splice( @oids, 0, 3 ) );
|
my $index = join( '.', splice( @oids, 0, 3 ) );
|
||||||
my $proto = shift(@oids);
|
my $proto = shift(@oids);
|
||||||
my $length = shift(@oids);
|
my $length = shift(@oids) if scalar @oids > 4;
|
||||||
|
|
||||||
# IPv4
|
# IPv4
|
||||||
if ( $proto == 1 ) {
|
if ( $proto == 1 ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user