Require extended multi-port match for OPTIMIZE 16.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-11-24 10:57:09 -08:00
parent 8d8a681f40
commit f305da9d0d

View File

@ -3900,6 +3900,8 @@ sub get_configuration( $$$ ) {
fatal_error "Invalid OPTIMIZE value ($config{OPTIMIZE})" unless supplied( $val ) && $val >= 0 && ( $val & ( 4096 ^ -1 ) ) <= 31; fatal_error "Invalid OPTIMIZE value ($config{OPTIMIZE})" unless supplied( $val ) && $val >= 0 && ( $val & ( 4096 ^ -1 ) ) <= 31;
require_capability 'XMULTIPORT', 'OPTIMIZE level 16', 's' if $val & 16;
$globals{MARKING_CHAIN} = $config{MARK_IN_FORWARD_CHAIN} ? 'tcfor' : 'tcpre'; $globals{MARKING_CHAIN} = $config{MARK_IN_FORWARD_CHAIN} ? 'tcfor' : 'tcpre';
if ( $val = $config{LOGFORMAT} ) { if ( $val = $config{LOGFORMAT} ) {