Use the real chain name in log messages

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-04-03 13:04:25 -07:00
parent ebf55a84f0
commit 054837aeea

View File

@ -6335,7 +6335,7 @@ sub log_rule_limit( $$$$$$$$;$ ) {
my ($level, $chainref, $chn, $dispo, $limit, $tag, $command, $matches, $origin ) = @_; my ($level, $chainref, $chn, $dispo, $limit, $tag, $command, $matches, $origin ) = @_;
my $prefix = ''; my $prefix = '';
my $chain = get_action_chain_name || $chn; my $chain = $actparams{0} ? $actparams{0}->{name} : $chn;
my $disposition = get_action_disposition || $dispo; my $disposition = get_action_disposition || $dispo;
my $original_matches = $matches; my $original_matches = $matches;
my $ruleref; my $ruleref;
@ -6435,7 +6435,7 @@ sub log_irule_limit( $$$$$$$$@ ) {
my $prefix = ''; my $prefix = '';
my %matches; my %matches;
my $chain = get_action_chain_name || $chn; my $chain = $actparams{0} ? $actparams{0}->{name} : $chn;
my $disposition = get_action_disposition || $dispo; my $disposition = get_action_disposition || $dispo;
my $original_matches = @matches; my $original_matches = @matches;