using PolicyRule::getTagValue() in compilers

This commit is contained in:
Vadim Kurland
2008-05-31 19:36:51 +00:00
parent ea8b6b1292
commit ef5c0e6327
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -290,7 +290,8 @@ string PolicyCompiler_ipt::PrintRule::_printTarget(PolicyRule *rule)
if (target=="MARK")
{
ostr << " --set-mark " << ruleopt->getStr("tagvalue");
// ostr << " --set-mark " << ruleopt->getStr("tagvalue");
ostr << " --set-mark " << rule->getTagValue();
}
if (target=="CONNMARK")
+2 -1
View File
@@ -281,7 +281,8 @@ void PolicyCompiler_pf::PrintRule::_printTag(PolicyRule *rule)
FWOptions *ruleopt =rule->getOptionsObject();
if (rule->getAction() == PolicyRule::Tag)
compiler->output << "tag " << ruleopt->getStr("tagvalue") << " ";
compiler->output << "tag " << rule->getTagValue() << " ";
// compiler->output << "tag " << ruleopt->getStr("tagvalue") << " ";
}
void PolicyCompiler_pf::PrintRule::_printDirection(PolicyRule *rule)