Improve interface BROADCAST handling

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6059 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-22 14:42:07 +00:00
parent abe8ce238d
commit ea0a8d09d1

View File

@ -208,7 +208,14 @@ sub validate_interfaces_file()
$interfaces{$interface}{root} = $interface; $interfaces{$interface}{root} = $interface;
} }
warning_message 'Shorewall no longer uses broadcast addresses in rule generation:' . $networks if $networks && $networks ne 'detect'; unless ( $networks eq '' || $networks eq 'detect' ) {
for my $address ( split /,/, $networks ) {
fatal_error 'Invalid BROADCAST address' unless $address =~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/;
}
warning_message 'Shorewall no longer uses broadcast addresses in rule generation';
}
my $optionsref = {}; my $optionsref = {};