mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-18 20:30:43 +01:00
Revert "Assign marks to according to GROUP zones"
This reverts commit 3fbfafb6e3
.
This commit is contained in:
parent
c31c9bca9c
commit
a6740c6c53
@ -4578,9 +4578,9 @@ sub get_configuration( $$$ ) {
|
||||
$globals{PROVIDER_MASK} = make_mask( $config{PROVIDER_BITS} ) << $config{PROVIDER_OFFSET};
|
||||
|
||||
if ( $config{ZONE_BITS} ) {
|
||||
$globals{ZONE_MASK} = $globals{ZONE_MASK1} = make_mask( $config{ZONE_BITS} ) << $globals{ZONE_OFFSET};
|
||||
$globals{ZONE_MASK} = make_mask( $config{ZONE_BITS} ) << $globals{ZONE_OFFSET};
|
||||
} else {
|
||||
$globals{ZONE_MASK} = $globals{ZONE_MASK1} = 0;
|
||||
$globals{ZONE_MASK} = 0;
|
||||
}
|
||||
|
||||
if ( ( my $userbits = $config{PROVIDER_OFFSET} - $config{TC_BITS} ) > 0 ) {
|
||||
|
@ -527,20 +527,10 @@ sub process_zone( \$ ) {
|
||||
$mark = 0;
|
||||
} else {
|
||||
unless ( $zoneref->{options}{in_out}{nomark} ) {
|
||||
if ( $type == GROUP ) {
|
||||
$zonemarklimit >>= 1;
|
||||
fatal_error "Zone mark overflow - please increase the setting of ZONE_BITS" if $zonemark >= $zonemarklimit;
|
||||
$mark = $zonemarklimit;
|
||||
} else {
|
||||
fatal_error "Zone mark overflow - please increase the setting of ZONE_BITS" if $zonemark >= $zonemarklimit;
|
||||
$mark = $zonemark;
|
||||
$zonemark += $zonemarkincr;
|
||||
$zoneref->{complex} = 1;
|
||||
|
||||
for ( @parents ) {
|
||||
$mark |= $zones{$_}{mark} if $zones{$_}{type} == GROUP;
|
||||
}
|
||||
}
|
||||
fatal_error "Zone mark overflow - please increase the setting of ZONE_BITS" if $zonemark >= $zonemarklimit;
|
||||
$mark = $zonemark;
|
||||
$zonemark += $zonemarkincr;
|
||||
$zoneref->{complex} = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user