summaryrefslogtreecommitdiff
path: root/scripts/firewall
diff options
context:
space:
mode:
authorMohit Mehta <mohit@vyatta.com>2010-09-21 21:16:02 -0700
committerMohit Mehta <mohit@vyatta.com>2010-09-21 21:16:02 -0700
commit1f74bdf65791ee8d18d8cfc914e81b25cef9a6c8 (patch)
treedb7977d1f5e8b587e39221e4f1eb5644a9c741fd /scripts/firewall
parentb37ca3f710c6d398626b4b5e8066ba91a1cd5e65 (diff)
downloadvyatta-cfg-firewall-1f74bdf65791ee8d18d8cfc914e81b25cef9a6c8.tar.gz
vyatta-cfg-firewall-1f74bdf65791ee8d18d8cfc914e81b25cef9a6c8.zip
* move count_iptables_rule to Iptables::Mgr and update it's usage
Diffstat (limited to 'scripts/firewall')
-rwxr-xr-xscripts/firewall/vyatta-firewall.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/firewall/vyatta-firewall.pl b/scripts/firewall/vyatta-firewall.pl
index cbd6484..ac2b312 100755
--- a/scripts/firewall/vyatta-firewall.pl
+++ b/scripts/firewall/vyatta-firewall.pl
@@ -10,7 +10,6 @@ use Vyatta::IpTables::AddressFilter;
use Vyatta::IpTables::Mgr;
use Getopt::Long;
use Vyatta::Zone;
-use Vyatta::Misc;
# Send output of shell commands to syslog for debugging and so that
@@ -698,7 +697,7 @@ sub setup_iptables {
}
# by default, nothing is tracked (the last rule in raw/PREROUTING).
- my $cnt = Vyatta::Misc::count_iptables_rules($iptables_cmd, 'raw', 'FW_CONNTRACK');
+ my $cnt = Vyatta::IpTables::Mgr::count_iptables_rules($iptables_cmd, 'raw', 'FW_CONNTRACK');
if ($cnt == 0) {
ipt_enable_conntrack($iptables_cmd, 'FW_CONNTRACK');
disable_fw_conntrack($iptables_cmd);
@@ -731,7 +730,7 @@ sub change_default_policy {
log_msg("change_default_policy($iptables_cmd, $table, $chain, $policy)\n");
# count the number of rules before adding the new policy
- my $default_rule = Vyatta::Misc::count_iptables_rules($iptables_cmd, $table, $chain);
+ my $default_rule = Vyatta::IpTables::Mgr::count_iptables_rules($iptables_cmd, $table, $chain);
# add new policy after existing policy
set_default_policy($table, $chain, $iptables_cmd, $policy, $log);