remove more bogus MAC's from Cisco ASA (#225)
This commit is contained in:
committed by
Oliver Gorwits
parent
9d62361c8a
commit
20014cab29
@@ -73,8 +73,8 @@ sub b_mac {
|
|||||||
foreach my $i ( keys %$macs ) {
|
foreach my $i ( keys %$macs ) {
|
||||||
my $mac = $macs->{$i};
|
my $mac = $macs->{$i};
|
||||||
|
|
||||||
# don't catch the bad macs with zeroed OUI
|
# don't catch the bad macs with bogus OUI
|
||||||
if ( $mac !~ m/(0{1,2}:){3}/ ) {
|
if ( $mac !~ m/(0{1,2}:){2}(00|01)/ )
|
||||||
push( @macs, $mac );
|
push( @macs, $mac );
|
||||||
}
|
}
|
||||||
@macs = sort(@macs);
|
@macs = sort(@macs);
|
||||||
|
|||||||
Reference in New Issue
Block a user