mirror of
https://gitlab.com/shorewall/code.git
synced 2025-04-11 21:08:22 +02:00
Revert "Small optimization in virtual zones"
This reverts commit 251d7116c8
.
This commit is contained in:
parent
f21c71d7a6
commit
038b84e775
@ -133,12 +133,8 @@ sub add_or_modify_policy_chain( $$ ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
unless ( $chainref->{marked} ) {
|
unless ( $chainref->{marked} ) {
|
||||||
my $mark = defined_zone( $zone )->{mark};
|
my $mark = defined_zone( $zone )->{mark} | ( defined_zone( $zone1 )->{mark} << VIRTUAL_BITS );
|
||||||
my $mark1 = defined_zone( $zone1 )->{mark} << VIRTUAL_BITS;
|
add_rule $chainref, '-j MARK --or-mark ' . in_hex($mark) if $mark;
|
||||||
|
|
||||||
add_rule $chainref, '-j MARK --or-mark ' . in_hex($mark) if $mark && $zone1 eq firewall_zone;
|
|
||||||
add_rule $chainref, '-j MARK --or-mark ' . in_hex($mark1) if $mark1;
|
|
||||||
|
|
||||||
$chainref->{marked} = 1;
|
$chainref->{marked} = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1698,8 +1698,6 @@ sub generate_matrix() {
|
|||||||
#
|
#
|
||||||
my $frwd_ref = new_standard_chain zone_forward_chain( $zone );
|
my $frwd_ref = new_standard_chain zone_forward_chain( $zone );
|
||||||
|
|
||||||
add_rule $frwd_ref, '-j MARK --set-mark ' . in_hex( $zoneref->{mark} ) if $zoneref->{mark};
|
|
||||||
|
|
||||||
if ( $capabilities{POLICY_MATCH} ) {
|
if ( $capabilities{POLICY_MATCH} ) {
|
||||||
#
|
#
|
||||||
# Because policy match only matches an 'in' or an 'out' policy (but not both), we have to place the
|
# Because policy match only matches an 'in' or an 'out' policy (but not both), we have to place the
|
||||||
|
Loading…
Reference in New Issue
Block a user