summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGaurav <gaurav.sinha@vyatta.com>2012-02-29 14:02:28 -0800
committerGaurav Sinha <gaurav.sinha@vyatta.com>2012-03-16 16:46:58 -0700
commitcbc1f51d4de447adf497464ca7b9d44459e867d3 (patch)
treef178596ff01ca47cc8f66c8b17f932767485fda8 /scripts
parent0b89edb15676df97868d853aea1128ab6401f17f (diff)
downloadvyatta-conntrack-cbc1f51d4de447adf497464ca7b9d44459e867d3.tar.gz
vyatta-conntrack-cbc1f51d4de447adf497464ca7b9d44459e867d3.zip
changing nfct-timeout to nfct timeout
(cherry picked from commit 0cd705236af16e8517b11478366f9fde4ea5c94b)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-conntrack-timeouts.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/vyatta-conntrack-timeouts.pl b/scripts/vyatta-conntrack-timeouts.pl
index f1aa790..ad3f5c0 100644
--- a/scripts/vyatta-conntrack-timeouts.pl
+++ b/scripts/vyatta-conntrack-timeouts.pl
@@ -69,7 +69,7 @@ sub remove_timeout_policy {
# First remove the iptables rules before removing policy.
my $iptables_cmd1 = "iptables -D PREROUTING -t raw $rule_string -j CT --timeout $tokens[0]";
my $iptables_cmd2 = "iptables -D OUTPUT -t raw $rule_string -j CT --timeout $tokens[0]";
- my $nfct_timeout_cmd = "nfct-timeout remove $timeout_policy";
+ my $nfct_timeout_cmd = "nfct timeout remove $timeout_policy";
run_cmd($iptables_cmd2);
if ($? >> 8) {
# FIXME: as of now, dont print/handle/exit as these always fail in iptables.
@@ -92,7 +92,7 @@ sub remove_timeout_policy {
# iptables -I PREROUTING -t raw -s 1.1.1.1 -d 2.2.2.2 -j CT --timeout policy1
sub apply_timeout_policy {
my ($rule_string, $timeout_policy) = @_;
- my $nfct_timeout_cmd = "nfct-timeout create $timeout_policy";
+ my $nfct_timeout_cmd = "nfct timeout create $timeout_policy";
my @tokens = split (' ', $timeout_policy);
my $iptables_cmd1 = "iptables -I PREROUTING -t raw $rule_string -j CT --timeout $tokens[0]";
my $iptables_cmd2 = "iptables -I OUTPUT -t raw $rule_string -j CT --timeout $tokens[0]";
@@ -106,14 +106,14 @@ sub apply_timeout_policy {
if ($? >> 8) {
#cleanup the policy before exit.
# FIXME: as of now, dont print/handle/exit as these always fail in iptables.
-# run_cmd("nfct-timeout remove $timeout_policy");
+# run_cmd("nfct timeout remove $timeout_policy");
# print "$CTERROR failed to run $iptables_cmd1\n";
# exit 1;
}
run_cmd($iptables_cmd2);
if ($? >> 8) {
# FIXME: as of now, dont print/handle/exit as these always fail in iptables.
-# run_cmd("nfct-timeout remove $timeout_policy");
+# run_cmd("nfct timeout remove $timeout_policy");
# run_cmd("iptables -D PREROUTING -t raw $rule_string -j CT --timeout $tokens[0]");
# print "$CTERROR failed to run $iptables_cmd2\n";
# exit 1;