summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-08-18 18:12:08 +0000
committerOlivier Blin <oblin@mandriva.org>2005-08-18 18:12:08 +0000
commite08093a42beca3e38859cfeea926207cdf9f478f (patch)
tree061e6f0b3772b3e01107098d0536f000f303901d /perl-install
parenta3143e18f55267d29c45d3c594f7fe7ce168d4d4 (diff)
downloaddrakx-e08093a42beca3e38859cfeea926207cdf9f478f.tar
drakx-e08093a42beca3e38859cfeea926207cdf9f478f.tar.gz
drakx-e08093a42beca3e38859cfeea926207cdf9f478f.tar.bz2
drakx-e08093a42beca3e38859cfeea926207cdf9f478f.tar.xz
drakx-e08093a42beca3e38859cfeea926207cdf9f478f.zip
add get_protocol
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/ifw.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/network/ifw.pm b/perl-install/network/ifw.pm
index 99ca87944..5be73cc59 100644
--- a/perl-install/network/ifw.pm
+++ b/perl-install/network/ifw.pm
@@ -83,6 +83,11 @@ sub get_service {
getservbyport($port, undef) || $port;
}
+sub get_protocol {
+ my ($protocol) = @_;
+ getprotobynumber($protocol) || $protocol;
+}
+
sub get_ip_address {
my ($addr) = @_;
inet_ntoa(pack('L', $addr));