diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-08-18 18:12:08 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-08-18 18:12:08 +0000 |
commit | e08093a42beca3e38859cfeea926207cdf9f478f (patch) | |
tree | 061e6f0b3772b3e01107098d0536f000f303901d | |
parent | a3143e18f55267d29c45d3c594f7fe7ce168d4d4 (diff) | |
download | drakx-e08093a42beca3e38859cfeea926207cdf9f478f.tar drakx-e08093a42beca3e38859cfeea926207cdf9f478f.tar.gz drakx-e08093a42beca3e38859cfeea926207cdf9f478f.tar.bz2 drakx-e08093a42beca3e38859cfeea926207cdf9f478f.tar.xz drakx-e08093a42beca3e38859cfeea926207cdf9f478f.zip |
add get_protocol
-rw-r--r-- | perl-install/network/ifw.pm | 5 |
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)); |