nwfilter: Clear all state tracking from a drop rule

Don't use state-matching in a drop rule.
This commit is contained in:
Stefan Berger 2010-04-16 07:34:36 -04:00
parent 3a7f2fc3b2
commit d2327278fb

View File

@ -1380,13 +1380,16 @@ _iptablesCreateRuleInstance(int directionIn,
return 0;
}
if (rule->action == VIR_NWFILTER_RULE_ACTION_ACCEPT)
target = accept_target;
else {
target = "DROP";
match = NULL;
}
if (match)
virBufferVSprintf(&buf, " %s", match);
if (rule->action == VIR_NWFILTER_RULE_ACTION_ACCEPT)
target = accept_target;
else
target = "DROP";
virBufferVSprintf(&buf,
" -j %s" CMD_DEF_POST CMD_SEPARATOR