From a6d73814e5b7d6a6489cd2e0b83dc63eb41ab25b 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 1d4f5c95c..3d4ba0687 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -476,6 +476,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 );