Include the chain name in the 'unreachable' warning.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-06-11 06:29:07 -07:00
parent 53f1cd40df
commit cb132e2421

View File

@ -6535,7 +6535,7 @@ sub unreachable_warning( $$ ) {
my ( $ignore, $chainref ) = @_; my ( $ignore, $chainref ) = @_;
unless ( $ignore ) { unless ( $ignore ) {
if ( $chainref->{complete} ) { if ( $chainref->{complete} ) {
warning_message "Any rules generated by this entry are unreachable and will therefore be discarded" unless $chainref->{unreachable_warned}++; warning_message "Unreachable rule(s) in chain $chainref->{name} have been discarded" unless $chainref->{unreachable_warned}++;
return 1; return 1;
} }
} }