Fix a couple of bugs

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5573 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-03-19 03:57:58 +00:00
parent 566090f2c8
commit d6f9e85c5f
2 changed files with 2 additions and 2 deletions

View File

@ -552,7 +552,7 @@ sub setup_mac_lists( $ ) {
my $maclist_hosts = find_hosts_by_option 'maclist'; my $maclist_hosts = find_hosts_by_option 'maclist';
for my $hostref ( $maclist_hosts ) { for my $hostref ( @$maclist_hosts ) {
$maclist_interfaces{ $hostref->[0][0] } = 1; $maclist_interfaces{ $hostref->[0][0] } = 1;
} }

View File

@ -194,7 +194,7 @@ sub process_tc_rule( $$$$$$$$$$ ) {
validate_mark $mark; validate_mark $mark;
fatal_error 'Marks < 256 may not be set in the PREROUTING chain when HIGH_ROUTE_MARKS=Yes' fatal_error 'Marks < 256 may not be set in the PREROUTING chain when HIGH_ROUTE_MARKS=Yes'
if $cmd || $chain eq 'tcpre' || numeric_value( $cmd ) <= 0xFF || $config{HIGH_ROUTE_MARKS}; if $cmd && $chain eq 'tcpre' && numeric_value( $cmd ) < 0xFF && $config{HIGH_ROUTE_MARKS};
} }
expand_rule expand_rule