From 03091be09ad19a537ae8d60cadf2cdea8da36937 Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 22 Jan 2008 23:21:44 +0000 Subject: [PATCH] Allow loose interface matching in more places git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8091 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Chains.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index b8f8b1631..35145b2d4 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -1234,7 +1234,7 @@ sub do_tos( $ ) { # sub match_source_dev( $ ) { my $interface = shift; - my $interfaceref = find_interface( $interface ); + my $interfaceref = known_interface( $interface ); if ( $interfaceref && $interfaceref->{options}{port} ) { "-i $interfaceref->{bridge} -m physdev --physdev-in $interface "; } else { @@ -1247,7 +1247,7 @@ sub match_source_dev( $ ) { # sub match_dest_dev( $ ) { my $interface = shift; - my $interfaceref = find_interface( $interface ); + my $interfaceref = known_interface( $interface ); if ( $interfaceref && $interfaceref->{options}{port} ) { if ( $capabilities{PHYSDEV_BRIDGE} ) { "-o $interfaceref->{bridge} -m physdev --physdev-is-bridged --physdev-out $interface ";