Final cut + 1 at bridge/detectnets

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6726 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-06-30 00:50:13 +00:00
parent bebaec1edc
commit 972561eb71

View File

@ -1655,11 +1655,14 @@ sub generate_matrix() {
#
no warnings;
next ZONE1 if ( $num_ifaces = %{$zoneref->{interfaces}} ) < 2 && ! ( $zoneref->{options}{in_out}{routeback} || @$exclusions );
while ( my ($interface, $sourceref) = ( each %needbroadcast ) ) {
use warnings;
if ( get_interface_option( $interface, 'bridge' ) ) {
for my $source ( keys %$sourceref ) {
add_rule $filter_table->{forward_chain $interface} , "-o $interface ${source}-m addrtype --dst-type BROADCAST -j $chain3" if $chain3;
if ( $chain3 ) {
while ( my ($interface, $sourceref) = ( each %needbroadcast ) ) {
if ( get_interface_option( $interface, 'bridge' ) ) {
for my $source ( keys %$sourceref ) {
add_rule $filter_table->{forward_chain $interface} , "-o $interface ${source}-m addrtype --dst-type BROADCAST -j $chain3";
}
}
}
}