From 5cb959b11ad38701abc5d86d604c1444da34eb35 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 25 Nov 2008 11:19:20 -0800 Subject: Fix reference to Vyatta::Misc Add reference line to pick up getPortRuleString. --- lib/Vyatta/IpTables/AddressFilter.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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); -- cgit v1.2.3