From 90df607d79346607b86491e14219a3457978b49c Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 30 Mar 2018 15:30:34 -0700 Subject: [PATCH] Finish removal of 'refresh command' Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Compiler.pm | 9 ++++----- Shorewall/Perl/compiler.pl | 6 ------ 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Compiler.pm b/Shorewall/Perl/Shorewall/Compiler.pm index f64899f33..1ef9041a1 100644 --- a/Shorewall/Perl/Shorewall/Compiler.pm +++ b/Shorewall/Perl/Shorewall/Compiler.pm @@ -356,7 +356,7 @@ sub generate_script_2() { # Note: This function is not called when $command eq 'check'. So it must have no side effects other # than those related to writing to the output script file. # -sub generate_script_3($) { +sub generate_script_3() { if ( $family == F_IPV4 ) { progress_message2 "Creating iptables-restore input..."; @@ -582,8 +582,8 @@ sub compile_info_command() { # sub compiler { - my ( $scriptfilename, $directory, $verbosity, $timestamp , $debug, $chains , $log , $log_verbosity, $preview, $confess , $update , $annotate , $config_path, $shorewallrc , $shorewallrc1 ) = - ( '', '', -1, '', 0, '', '', -1, 0, 0, 0, 0, , '' , '/usr/share/shorewall/shorewallrc', '' ); + my ( $scriptfilename, $directory, $verbosity, $timestamp , $debug, $log , $log_verbosity, $preview, $confess , $update , $annotate , $config_path, $shorewallrc , $shorewallrc1 ) = + ( '', '', -1, '', 0, '', -1, 0, 0, 0, 0, , '' , '/usr/share/shorewall/shorewallrc', '' ); $export = 0; $test = 0; @@ -612,7 +612,6 @@ sub compiler { timestamp => { store => \$timestamp, validate => \&validate_boolean } , debug => { store => \$debug, validate => \&validate_boolean } , export => { store => \$export , validate => \&validate_boolean } , - chains => { store => \$chains }, log => { store => \$log }, log_verbosity => { store => \$log_verbosity, validate => \&validate_verbosity } , test => { store => \$test }, @@ -882,7 +881,7 @@ sub compiler { # N E T F I L T E R L O A D # (Produces setup_netfilter(), setup_arptables(), chainlist_reload() and define_firewall() ) # - generate_script_3( $chains ); + generate_script_3(); # # We must reinitialize Shorewall::Chains before generating the iptables-restore input # for stopping the firewall diff --git a/Shorewall/Perl/compiler.pl b/Shorewall/Perl/compiler.pl index 0c1b2b9d9..6add77960 100755 --- a/Shorewall/Perl/compiler.pl +++ b/Shorewall/Perl/compiler.pl @@ -32,7 +32,6 @@ # --directory= # Directory where configuration resides (default is /etc/shorewall) # --timestamp # Timestamp all progress messages # --debug # Print stack trace on warnings and fatal error. -# --refresh= # Make the 'refresh' command refresh a comma-separated list of chains rather than 'blacklst'. # --log= # Log file # --log_verbosity= # Log Verbosity range -1 to 2 # --family= # IP family; 4 = IPv4 (default), 6 = IPv6 @@ -63,7 +62,6 @@ usage: compiler.pl [