summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-25 11:19:20 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-25 11:19:20 -0800
commit5cb959b11ad38701abc5d86d604c1444da34eb35 (patch)
tree8d717ad999ee4244e41488710c902cf105d9785b
parentc596eb74028ad78d995cbcf9b228131b9ac53dc0 (diff)
downloadvyatta-cfg-firewall-5cb959b11ad38701abc5d86d604c1444da34eb35.tar.gz
vyatta-cfg-firewall-5cb959b11ad38701abc5d86d604c1444da34eb35.zip
Fix reference to Vyatta::Misc
Add reference line to pick up getPortRuleString.
-rwxr-xr-xlib/Vyatta/IpTables/AddressFilter.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Vyatta/IpTables/AddressFilter.pm b/lib/Vyatta/IpTables/AddressFilter.pm
index 9b1e318..1749dcd 100755
--- a/lib/Vyatta/IpTables/AddressFilter.pm
+++ b/lib/Vyatta/IpTables/AddressFilter.pm
@@ -22,7 +22,7 @@
package Vyatta::IpTables::AddressFilter;
require Vyatta::Config;
-use Vyatta::Misc;
+use Vyatta::Misc qw(getPortRuleString);
use Vyatta::TypeChecker;
use strict;
@@ -186,9 +186,9 @@ sub rule {
}
my ($port_str, $port_err)
- = VyattaMisc::getPortRuleString($self->{_port}, $can_use_port,
- ($self->{_srcdst} eq "source") ? "s" : "d",
- $self->{_protocol});
+ = getPortRuleString($self->{_port}, $can_use_port,
+ ($self->{_srcdst} eq "source") ? "s" : "d",
+ $self->{_protocol});
return (undef, $port_err) if (!defined($port_str));
$rule .= $port_str;
return ($rule, undef);