Correct handling of LOGMARK

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-11-17 07:22:07 -08:00
parent d096b9399a
commit 348c6c8cf7

View File

@ -608,6 +608,7 @@ sub initialize( $ ) {
PANIC => 0,
NONE => '',
NFLOG => 'NFLOG',
LOGMARK => 'LOGMARK',
);
#
@ -2202,7 +2203,7 @@ sub validate_level( $ ) {
if ( supplied $qualifier ) {
return $rawlevel if $qualifier =~ /^ --/;
if ( $qualifier =~ /[(](.+)[)]?$/ ) {
if ( $qualifier =~ /[(](.+)[)]$/ ) {
$sublevel = $1;
$sublevel = $validlevels{$sublevel} unless $sublevel =~ /^[0-7]$/;