rename setting macsuck_no_deviceport to macsuck_no_deviceports
This commit is contained in:
@@ -229,9 +229,12 @@ if (ref {} eq ref setting('device_identity')) {
|
||||
else { config->{'device_identity'} ||= [] }
|
||||
|
||||
if (ref {} eq ref setting('macsuck_no_deviceport')) {
|
||||
config->{'macsuck_no_deviceport'} = [ setting('macsuck_no_deviceport') ];
|
||||
config->{'macsuck_no_deviceports'} = [ setting('macsuck_no_deviceport') ];
|
||||
}
|
||||
else { config->{'macsuck_no_deviceport'} ||= [] }
|
||||
if (ref {} eq ref setting('macsuck_no_deviceports')) {
|
||||
config->{'macsuck_no_deviceports'} = [ setting('macsuck_no_deviceports') ];
|
||||
}
|
||||
else { config->{'macsuck_no_deviceports'} ||= [] }
|
||||
|
||||
if (ref {} eq ref setting('hide_deviceports')) {
|
||||
config->{'hide_deviceports'} = [ setting('hide_deviceports') ];
|
||||
|
||||
@@ -292,9 +292,9 @@ sub walk_fwtable {
|
||||
my $skiplist = {}; # ports through which we can see another device
|
||||
my $cache = {};
|
||||
|
||||
my $ignorelist = {}; # ports suppressed by macsuck_no_deviceport
|
||||
if (scalar @{ setting('macsuck_no_deviceport') }) {
|
||||
my @ignoremaps = @{ setting('macsuck_no_deviceport') };
|
||||
my $ignorelist = {}; # ports suppressed by macsuck_no_deviceports
|
||||
if (scalar @{ setting('macsuck_no_deviceports') }) {
|
||||
my @ignoremaps = @{ setting('macsuck_no_deviceports') };
|
||||
|
||||
foreach my $map (@ignoremaps) {
|
||||
next unless ref {} eq ref $map;
|
||||
@@ -307,7 +307,7 @@ sub walk_fwtable {
|
||||
next unless check_acl_only($device_ports->{$port}, $map->{$key});
|
||||
|
||||
++$ignorelist->{$port};
|
||||
debug sprintf ' [%s] macsuck %s - port suppressed by macsuck_no_deviceport',
|
||||
debug sprintf ' [%s] macsuck %s - port suppressed by macsuck_no_deviceports',
|
||||
$device->ip, $port;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user