summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaurav <gaurav.sinha@vyatta.com>2012-02-21 13:46:20 -0800
committerGaurav Sinha <gaurav.sinha@vyatta.com>2012-03-16 16:41:32 -0700
commit0f242d1a1fa363b19229b886622ef9ca3a4f50b5 (patch)
tree5ffce683b613f69debd9067fa4900a93e353c242
parent15bb1ba78ade472e8dea5d1f4dd8f8a15af78a3c (diff)
downloadvyatta-conntrack-0f242d1a1fa363b19229b886622ef9ca3a4f50b5.tar.gz
vyatta-conntrack-0f242d1a1fa363b19229b886622ef9ca3a4f50b5.zip
modified to use AddressFilter from IpTables
(cherry picked from commit 1392750b600cec991e24e7ab0cc211c621e4430a)
-rw-r--r--Makefile.am1
-rw-r--r--lib/Vyatta/Conntrack/RuleCT.pm10
-rw-r--r--scripts/vyatta-conntrack-timeouts.pl2
3 files changed, 6 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am
index 0080498..39a08b2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,7 +17,6 @@ checkparamsonreboot_SCRIPTS += scripts/check-params-on-reboot.d/conntrack-hash-s
share_perl5_DATA = lib/Vyatta/Conntrack/Config.pm
share_perl5_DATA += lib/Vyatta/Conntrack/ConntrackUtil.pm
share_perl5_DATA += lib/Vyatta/Conntrack/RuleCT.pm
-share_perl5_DATA += lib/Vyatta/Conntrack/AddressFilterCT.pm
sbin_SCRIPTS = scripts/vyatta-update-conntrack-log.pl
bin_sudo_usersdir = $(bindir)/sudo-users
diff --git a/lib/Vyatta/Conntrack/RuleCT.pm b/lib/Vyatta/Conntrack/RuleCT.pm
index 3a0377b..e407f42 100644
--- a/lib/Vyatta/Conntrack/RuleCT.pm
+++ b/lib/Vyatta/Conntrack/RuleCT.pm
@@ -2,10 +2,10 @@ package Vyatta::Conntrack::RuleCT;
use strict;
use Vyatta::Config;
-require Vyatta::Conntrack::AddressFilterCT;
+require Vyatta::IpTables::AddressFilter;
-my $src = new Vyatta::Conntrack::AddressFilterCT;
-my $dst = new Vyatta::Conntrack::AddressFilterCT;
+my $src = new Vyatta::IpTables::AddressFilter;
+my $dst = new Vyatta::IpTables::AddressFilter;
my %fields = (
_rule_number => undef,
@@ -52,8 +52,8 @@ sub setupDummy {
my ($self, $level) = @_;
%{$self} = %dummy_rule;
- $src = new Vyatta::Conntrack::AddressFilterCT;
- $dst = new Vyatta::Conntrack::AddressFilterCT;
+ $src = new Vyatta::IpTables::AddressFilter;
+ $dst = new Vyatta::IpTables::AddressFilter;
# set the default policy
my $config = new Vyatta::Config;
diff --git a/scripts/vyatta-conntrack-timeouts.pl b/scripts/vyatta-conntrack-timeouts.pl
index 8ab322d..7395b06 100644
--- a/scripts/vyatta-conntrack-timeouts.pl
+++ b/scripts/vyatta-conntrack-timeouts.pl
@@ -6,7 +6,7 @@ use strict;
use Vyatta::Config;
use Vyatta::Conntrack::RuleCT;
-use Vyatta::Conntrack::AddressFilterCT;
+use Vyatta::IpTables::AddressFilter;
use Getopt::Long;
use Vyatta::Zone;
use Sys::Syslog qw(:standard :macros);