Formalize zone dynamic chain naming

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8417 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-04-10 23:54:52 +00:00
parent 5d459daa75
commit b46bcd39a1
2 changed files with 8 additions and 2 deletions

View File

@ -95,6 +95,7 @@ our %EXPORT_TAGS = (
dynamic_in
dynamic_out
dynamic_chains
zone_dynamic_chain
dnat_chain
snat_chain
ecn_chain
@ -665,7 +666,7 @@ sub use_input_chain($) {
#
sub output_chain($)
{
chain_base_cond($_[0]) . '_out';
chain_base_cond($_[0]) . '_out';
}
#
@ -757,6 +758,11 @@ sub dynamic_chains( $ ) #$1 = interface
( $c . '_dyni' , $c . '_dynf' , $c . '_dyno' );
}
sub zone_dynamic_chain( $ ) # $1 = zone
{
$_[0] . '_dyn';
}
#
# DNAT Chain from a zone
#

View File

@ -1496,7 +1496,7 @@ sub generate_matrix() {
#
sub create_zone_dyn_chain( $$ ) {
my ( $zone , $chainref ) = @_;
add_jump $chainref, "${zone}_dyn";
add_jump $chainref, zone_dynamic_chain $zone;
}
#