summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGaurav Sinha <gaurav.sinha@vyatta.com>2012-03-17 12:42:05 -0700
committerGaurav Sinha <gaurav.sinha@vyatta.com>2012-03-17 12:42:05 -0700
commit0f71f18eaec8643d8f78b95bb1657734b3f5b368 (patch)
treec24a4340feefbba8b99a9f0e269f4cd75f324a64 /scripts
parentec409015bfa33a4e33b7437f3ce7093c2b58d21a (diff)
downloadvyatta-conntrack-0f71f18eaec8643d8f78b95bb1657734b3f5b368.tar.gz
vyatta-conntrack-0f71f18eaec8643d8f78b95bb1657734b3f5b368.zip
delete nfct fixed, use only policy name, modified deletion function
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-conntrack-timeouts.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-conntrack-timeouts.pl b/scripts/vyatta-conntrack-timeouts.pl
index 81e5fff..8fe2e39 100644
--- a/scripts/vyatta-conntrack-timeouts.pl
+++ b/scripts/vyatta-conntrack-timeouts.pl
@@ -127,7 +127,7 @@ sub handle_rule_creation {
do_protocol_check($rule);
$node->setup("system conntrack timeout custom rule $rule");
$rule_string = $node->rule();
- $timeout_policy = $node->get_policy_command(); #nfct-timeout command string
+ $timeout_policy = $node->get_policy_command("add"); #nfct-timeout command string
apply_timeout_policy($rule_string, $timeout_policy);
}
@@ -155,7 +155,7 @@ sub handle_rule_deletion {
my ($rule_string, $timeout_policy);
$node->setupOrig("system conntrack timeout custom rule $rule");
$rule_string = $node->rule();
- $timeout_policy = $node->get_policy_command(); #nfct-timeout command string
+ $timeout_policy = $node->get_policy_command("delete"); #nfct-timeout command string
remove_timeout_policy($rule_string, $timeout_policy);
}