Move setup_mss() call to setup_routing_and_traffic_shaping()

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6428 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-21 14:29:50 +00:00
parent b029ebac16
commit f2bca1d1f3

View File

@ -467,7 +467,7 @@ EOF
# Second Phase of Script Generation # Second Phase of Script Generation
# #
# copies the 'prog.functions' file into the script, generates # copies the 'prog.functions' file into the script, generates
# generates clear_routing_and_traffic_shaping() and the first part of # clear_routing_and_traffic_shaping() and the first part of
# 'setup_routing_and_traffic_shaping()' # 'setup_routing_and_traffic_shaping()'
# #
# The bulk of that function is produced by the various config file # The bulk of that function is produced by the various config file
@ -486,8 +486,6 @@ sub generate_script_2 () {
push_indent; push_indent;
emit 'local restore_file=$1';
save_progress_message 'Initializing...'; save_progress_message 'Initializing...';
if ( $export ) { if ( $export ) {
@ -543,7 +541,6 @@ sub generate_script_2 () {
emit "delete_tc1\n" if $config{CLEAR_TC}; emit "delete_tc1\n" if $config{CLEAR_TC};
emit "disable_ipv6\n" if $config{DISABLE_IPV6}; emit "disable_ipv6\n" if $config{DISABLE_IPV6};
setup_mss( $config{CLAMPMSS} ) if $config{CLAMPMSS};
pop_indent; pop_indent;
@ -555,6 +552,8 @@ sub generate_script_2 () {
'setup_routing_and_traffic_shaping() {' 'setup_routing_and_traffic_shaping() {'
); );
setup_mss( $config{CLAMPMSS} ) if $config{CLAMPMSS};
push_indent; push_indent;
} }