forked from extern/shorewall_code
Allow loose interface matching in more places
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8091 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
6345fa2a40
commit
03091be09a
@ -1234,7 +1234,7 @@ sub do_tos( $ ) {
|
|||||||
#
|
#
|
||||||
sub match_source_dev( $ ) {
|
sub match_source_dev( $ ) {
|
||||||
my $interface = shift;
|
my $interface = shift;
|
||||||
my $interfaceref = find_interface( $interface );
|
my $interfaceref = known_interface( $interface );
|
||||||
if ( $interfaceref && $interfaceref->{options}{port} ) {
|
if ( $interfaceref && $interfaceref->{options}{port} ) {
|
||||||
"-i $interfaceref->{bridge} -m physdev --physdev-in $interface ";
|
"-i $interfaceref->{bridge} -m physdev --physdev-in $interface ";
|
||||||
} else {
|
} else {
|
||||||
@ -1247,7 +1247,7 @@ sub match_source_dev( $ ) {
|
|||||||
#
|
#
|
||||||
sub match_dest_dev( $ ) {
|
sub match_dest_dev( $ ) {
|
||||||
my $interface = shift;
|
my $interface = shift;
|
||||||
my $interfaceref = find_interface( $interface );
|
my $interfaceref = known_interface( $interface );
|
||||||
if ( $interfaceref && $interfaceref->{options}{port} ) {
|
if ( $interfaceref && $interfaceref->{options}{port} ) {
|
||||||
if ( $capabilities{PHYSDEV_BRIDGE} ) {
|
if ( $capabilities{PHYSDEV_BRIDGE} ) {
|
||||||
"-o $interfaceref->{bridge} -m physdev --physdev-is-bridged --physdev-out $interface ";
|
"-o $interfaceref->{bridge} -m physdev --physdev-is-bridged --physdev-out $interface ";
|
||||||
|
Loading…
Reference in New Issue
Block a user