Logically OR builtin definitions from the actions file if the builtin exists

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2014-01-01 07:18:00 -08:00
parent f7bbac6ea8
commit 6c990a7253

View File

@ -1797,7 +1797,13 @@ sub process_actions() {
# For backward compatibility, we assume that user-defined builtins are valid in the filter table
#
$actiontype |= FILTER_TABLE if $filter || ! ($mangle || $raw || $nat);
if ( $builtin_target{$action} ) {
$builtin_target{$action} |= $actiontype;
} else {
$builtin_target{$action} = $actiontype;
}
$targets{$action} = $actiontype;
} else {
fatal_error "Table names are only allowed for builtin actions" if $mangle || $raw || $nat || $filter;