mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-24 00:23:28 +01:00
Eliminate one generated function
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9296 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
ac66faf91a
commit
7f5a1c1056
@ -626,7 +626,7 @@ sub generate_script_2 () {
|
||||
}
|
||||
|
||||
emit( "\n#",
|
||||
'# Setup Common Rules',
|
||||
'# Setup Common Rules (/proc)',
|
||||
'#',
|
||||
'setup_common_rules() {'
|
||||
);
|
||||
@ -672,27 +672,6 @@ sub generate_script_3 () {
|
||||
#
|
||||
sub generate_script_4($) {
|
||||
|
||||
emit 'cat > ${VARDIR}/proxyarp << __EOF__';
|
||||
dump_proxy_arp;
|
||||
emit_unindented '__EOF__';
|
||||
|
||||
emit( '',
|
||||
'if [ "$COMMAND" != refresh ]; then' );
|
||||
|
||||
push_indent;
|
||||
|
||||
emit 'cat > ${VARDIR}/zones << __EOF__';
|
||||
dump_zone_contents;
|
||||
emit_unindented '__EOF__';
|
||||
|
||||
pop_indent;
|
||||
|
||||
emit "fi\n";
|
||||
|
||||
emit '> ${VARDIR}/nat';
|
||||
|
||||
add_addresses;
|
||||
|
||||
pop_indent;
|
||||
|
||||
emit "}\n";
|
||||
@ -785,7 +764,30 @@ sub generate_script_4($) {
|
||||
emit( 'setup_common_rules',
|
||||
'',
|
||||
'setup_routing_and_traffic_shaping',
|
||||
'',
|
||||
'');
|
||||
|
||||
emit 'cat > ${VARDIR}/proxyarp << __EOF__';
|
||||
dump_proxy_arp;
|
||||
emit_unindented '__EOF__';
|
||||
|
||||
emit( '',
|
||||
'if [ "$COMMAND" != refresh ]; then' );
|
||||
|
||||
push_indent;
|
||||
|
||||
emit 'cat > ${VARDIR}/zones << __EOF__';
|
||||
dump_zone_contents;
|
||||
emit_unindented '__EOF__';
|
||||
|
||||
pop_indent;
|
||||
|
||||
emit "fi\n";
|
||||
|
||||
emit '> ${VARDIR}/nat';
|
||||
|
||||
add_addresses;
|
||||
|
||||
emit( '',
|
||||
'if [ $COMMAND = restore ]; then',
|
||||
' iptables_save_file=${VARDIR}/$(basename $0)-iptables',
|
||||
' if [ -f $iptables_save_file ]; then' );
|
||||
|
Loading…
Reference in New Issue
Block a user