Improve editing of TEST column

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6218 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-03 17:10:07 +00:00
parent 29ff6888fe
commit 45c8d39a1b

View File

@ -897,6 +897,8 @@ sub do_test ( $$ )
my $invert = $testval =~ s/^!// ? '! ' : '';
my $match = $testval =~ s/:C$// ? "-m connmark ${invert}--mark" : "-m mark ${invert}--mark";
validate_mark $testval;
$testval .= '/0xFF' unless ( $testval =~ '/' );
"$match $testval ";