diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-11-25 11:19:20 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-11-25 11:19:20 -0800 |
commit | 5cb959b11ad38701abc5d86d604c1444da34eb35 (patch) | |
tree | 8d717ad999ee4244e41488710c902cf105d9785b | |
parent | c596eb74028ad78d995cbcf9b228131b9ac53dc0 (diff) | |
download | vyatta-cfg-firewall-5cb959b11ad38701abc5d86d604c1444da34eb35.tar.gz vyatta-cfg-firewall-5cb959b11ad38701abc5d86d604c1444da34eb35.zip |
Fix reference to Vyatta::Misc
Add reference line to pick up getPortRuleString.
-rwxr-xr-x | lib/Vyatta/IpTables/AddressFilter.pm | 8 |
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); |