From 6bec7d099c3eaedbf88c56385fcdb456e30ebdde Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 11 Dec 2010 07:39:16 -0800 Subject: [PATCH] Ensure that interfaces listed in the tcinterfaces file are known --- Shorewall/Perl/Shorewall/Tc.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index fad39b7c5..d422a77d5 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -458,6 +458,8 @@ sub process_simple_device() { my $number = in_hexp( $tcdevices{$device} = ++$devnum ); + fatal_error "Unknown interface( $device )" unless known_interface $device; + my $physical = physical_name $device; my $dev = chain_base( $physical );