Remove %zones{option}{nested}

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-03-13 11:31:13 -07:00
parent e0b360513c
commit fecd091078
2 changed files with 2 additions and 5 deletions

View File

@ -1558,7 +1558,7 @@ sub generate_matrix() {
my $chain = 0;
my $dnatref = ensure_chain 'nat' , dnat_chain( $zone );
my $notrackref = ensure_chain 'raw' , notrack_chain( $zone );
my $nested = $zoneref->{options}{nested};
my $nested = @{$zoneref->{parents}};
my $parenthasnat = 0;
my $parenthasnotrack = 0;

View File

@ -116,8 +116,7 @@ use constant { IN_OUT => 1,
#
# %zones{<zone1> => {type => <zone type> FIREWALL, IP, IPSEC, BPORT;
# complex => 0|1
# options => { nested => 0|1
# super => 0|1
# options => { super => 0|1
# in_out => < policy match string >
# in => < policy match string >
# out => < policy match string >
@ -490,7 +489,6 @@ sub process_zone( \$ ) {
options => { in_out => parse_zone_option_list( $options , $type, $complex , IN_OUT ) ,
in => parse_zone_option_list( $in_options , $type , $complex , IN ) ,
out => parse_zone_option_list( $out_options , $type , $complex , OUT ) ,
nested => @parents > 0 ,
super => 0 ,
} ,
complex => ( $type & IPSEC || $complex ) ,
@ -519,7 +517,6 @@ sub process_zone( \$ ) {
progress_message_nocompress " Zone $zone:\tmark value " . in_hex( $zoneref->{mark} = $mark );
}
}
if ( $zoneref->{options}{in_out}{blacklist} ) {
for ( qw/in out/ ) {