From 7b8522f756965d3a410515edca52f22d43ee9c27 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 20 Dec 2010 15:07:53 -0800 Subject: [PATCH] Supply dummy MAC for unreachable gateway --- Shorewall/Perl/Shorewall/Providers.pm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index 002c60cc7..3b6f34cbf 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -18,7 +18,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MAS 02110-1301 USA. # # This module deals with the /etc/shorewall/providers, # /etc/shorewall/route_rules and /etc/shorewall/routes files. @@ -35,7 +35,7 @@ use strict; our @ISA = qw(Exporter); our @EXPORT = qw( setup_providers @routemarked_interfaces handle_stickiness handle_optional_interfaces ); our @EXPORT_OK = qw( initialize lookup_provider ); -our $VERSION = '4.4_15'; +our $VERSION = '4.4_16'; use constant { LOCAL_TABLE => 255, MAIN_TABLE => 254, @@ -520,7 +520,13 @@ sub add_a_provider( ) { if ( $optional ) { if ( $shared ) { - emit ( " error_message \"WARNING: Gateway $gateway is not reachable -- Provider $table ($number) not Added\"" ); + my $var = $providers{$table}{mac}; + + $var =~ s/^\$//; + + emit ( " error_message \"WARNING: Gateway $gateway is not reachable -- Provider $table ($number) not Added\"" , + " $var=fe:ff:ff:ff:ff:ff" ); + } else { emit ( " error_message \"WARNING: Interface $physical is not usable -- Provider $table ($number) not Added\"" ); }