mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-24 11:41:26 +02:00
Fix code generation for setup_common_rules()
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9331 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
e0fc80bed5
commit
465f0479b3
@ -607,7 +607,7 @@ EOF
|
|||||||
# Second Phase of Script Generation
|
# Second Phase of Script Generation
|
||||||
#
|
#
|
||||||
# copies the 'prog.functions' file into the script and generates
|
# copies the 'prog.functions' file into the script and generates
|
||||||
# the first part of 'setup_common()'
|
# the first part of 'setup_common_rules()'
|
||||||
#
|
#
|
||||||
# The bulk of that function is produced by the various config file
|
# The bulk of that function is produced by the various config file
|
||||||
# parsing routines that are called directly out of 'compiler()'.
|
# parsing routines that are called directly out of 'compiler()'.
|
||||||
@ -768,7 +768,7 @@ sub generate_script_4($) {
|
|||||||
|
|
||||||
emit '';
|
emit '';
|
||||||
|
|
||||||
emit( '[ -n "$TCRONLY" ] && setup_common_rules',
|
emit( '[ -n "$TCRONLY" ] || setup_common_rules',
|
||||||
'',
|
'',
|
||||||
'[ -n "$NOTCR" ] || setup_routing_and_traffic_shaping',
|
'[ -n "$NOTCR" ] || setup_routing_and_traffic_shaping',
|
||||||
'',
|
'',
|
||||||
@ -997,7 +997,7 @@ sub compiler {
|
|||||||
#
|
#
|
||||||
compile_stop_firewall;
|
compile_stop_firewall;
|
||||||
#
|
#
|
||||||
# Start Second Part of script
|
# Start Second Part of script ================= setup_common_rules() {
|
||||||
#
|
#
|
||||||
generate_script_2 unless $command eq 'check';
|
generate_script_2 unless $command eq 'check';
|
||||||
#
|
#
|
||||||
@ -1023,7 +1023,7 @@ sub compiler {
|
|||||||
#
|
#
|
||||||
setup_zone_mss;
|
setup_zone_mss;
|
||||||
#
|
#
|
||||||
# Finish setup_common_rules() and start setup_routing_and_traffic_shaping()
|
# Finish setup_common_rules() and start setup_routing_and_traffic_shaping() {
|
||||||
#
|
#
|
||||||
generate_script_3;
|
generate_script_3;
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user