mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 19:01:19 +01:00
Add progress message for each optimization pass.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
6171d938f7
commit
8017f603a0
@ -1780,6 +1780,8 @@ sub optimize_ruleset() {
|
|||||||
$progress = 0;
|
$progress = 0;
|
||||||
$passes++;
|
$passes++;
|
||||||
|
|
||||||
|
progress_message "\n Table $table pass $passes, level 4a...";
|
||||||
|
|
||||||
for my $chainref ( grep $_->{referenced}, values %{$chain_table{$table}} ) {
|
for my $chainref ( grep $_->{referenced}, values %{$chain_table{$table}} ) {
|
||||||
#
|
#
|
||||||
# If the chain isn't branched to, then delete it
|
# If the chain isn't branched to, then delete it
|
||||||
@ -1873,6 +1875,8 @@ sub optimize_ruleset() {
|
|||||||
$progress = 0;
|
$progress = 0;
|
||||||
$passes++;
|
$passes++;
|
||||||
|
|
||||||
|
progress_message "\n Table $table pass $passes, level 4b...";
|
||||||
|
|
||||||
for my $chainref ( grep $_->{referenced}, values %{$chain_table{$table}} ) {
|
for my $chainref ( grep $_->{referenced}, values %{$chain_table{$table}} ) {
|
||||||
my $lastrule = $chainref->{rules}[-1];
|
my $lastrule = $chainref->{rules}[-1];
|
||||||
|
|
||||||
@ -1896,6 +1900,8 @@ sub optimize_ruleset() {
|
|||||||
#
|
#
|
||||||
$passes++;
|
$passes++;
|
||||||
|
|
||||||
|
progress_message "\n Table $table pass $passes, level 8...";
|
||||||
|
|
||||||
for my $chainref ( grep $_->{referenced} && ! $_->{builtin}, values %{$chain_table{$table}} ) {
|
for my $chainref ( grep $_->{referenced} && ! $_->{builtin}, values %{$chain_table{$table}} ) {
|
||||||
my $rules = $chainref->{rules};
|
my $rules = $chainref->{rules};
|
||||||
next if not @$rules;
|
next if not @$rules;
|
||||||
|
Loading…
Reference in New Issue
Block a user