1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-23 03:37:15 +01:00

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

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")

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)